Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
6
82
language
stringclasses
11 values
license
stringclasses
1 value
meta
unknown
path
stringclasses
67 values
product
stringclasses
3 values
text
stringlengths
20
176k
type
stringclasses
6 values
code:CITATION.cff
yaml
MIT
{ "scrubbed": true }
CITATION.cff
repo
cff-version: 1.2.0 message: "If you use this project, please cite it as below." title: "MD2Docx Converter" abstract: >- Convert Markdown to polished Word (.docx) documents with ten bundled Chinese and English reference templates, Mermaid diagram rendering and fine-grained style control. Ships as a VS Code extensi...
code
code:VSC-plugin-MD2Docx-Converter/package.json
json
MIT
{}
VSC-plugin-MD2Docx-Converter/package.json
vscode-extension
{ "name": "mdocx-converter", "displayName": "MD2Docx Converter", "description": "Export Markdown files to DOCX with Pandoc, Mermaid diagrams, bundled reference templates, and document profiles.", "icon": "assets/icon.png", "version": "0.5.2", "publisher": "alexmultiagent", "license": "MIT", "repository"...
code
code:VSC-plugin-MD2Docx-Converter/scripts/build-templates.js
javascript
MIT
{}
VSC-plugin-MD2Docx-Converter/scripts/build-templates.js
vscode-extension
const fs = require('fs'); const path = require('path'); const AdmZip = require('adm-zip'); const { PROFILE_PRESETS, TEMPLATE_LAYOUT } = require('../out/profiles.js'); const REPO_ROOT = path.join(__dirname, '..'); const BASE_DOCX = path.join(__dirname, 'reference-base.docx'); const OUTPUT_DIR = path.join(REPO_ROOT, 'mu...
code
code:VSC-plugin-MD2Docx-Converter/scripts/sanitize-docx-metadata.ps1
powershell
MIT
{}
VSC-plugin-MD2Docx-Converter/scripts/sanitize-docx-metadata.ps1
vscode-extension
param( [Parameter(Mandatory = $true)] [string[]]$Files ) Add-Type -AssemblyName System.IO.Compression.FileSystem foreach ($file in $Files) { if (-not (Test-Path -LiteralPath $file)) { throw "File not found: $file" } $tempRoot = Join-Path ([IO.Path]::GetTempPath()) ("mdocx-sanitize-" + [gu...
code
code:VSC-plugin-MD2Docx-Converter/src/document.ts
typescript
MIT
{}
VSC-plugin-MD2Docx-Converter/src/document.ts
vscode-extension
const ATX_HEADING_REGEX = /^#{1,6}[ \t]+(.+?)(?:[ \t]+#+[ \t]*)?\r?$/m; const ILLEGAL_FILENAME_CHARS = /[<>:"/\\|?*\u0000-\u001f]/g; /** * Blank CommonMark fenced code blocks while preserving their line breaks. * * A closing fence may use the same character repeated at least as many times * as the opener. Backtick...
code
code:VSC-plugin-MD2Docx-Converter/src/docxParts.ts
typescript
MIT
{}
VSC-plugin-MD2Docx-Converter/src/docxParts.ts
vscode-extension
import AdmZip = require('adm-zip'); /** * Find a part inside the archive, tolerating the backslash separators some * zip writers use. * * The OPC format requires forward slashes, but archives written by some * Windows tools store `word\styles.xml` instead. Python's zipfile * normalises those on read β€” which is w...
code
code:VSC-plugin-MD2Docx-Converter/src/docxStyles.ts
typescript
MIT
{}
VSC-plugin-MD2Docx-Converter/src/docxStyles.ts
vscode-extension
import { PROFILE_PRESETS, resolveFontPair, resolveLineSpacingTwips } from './profiles'; import type { CodeStyle, ProfilePreset, StyleProfile } from './profiles'; export interface DocxStyleOverride { styleId: string; /** Display names (w:name) to match. Matched case-insensitively. */ styleNames: string[]; ...
code
code:VSC-plugin-MD2Docx-Converter/src/extension.ts
typescript
MIT
{}
VSC-plugin-MD2Docx-Converter/src/extension.ts
vscode-extension
import * as vscode from 'vscode'; import type { CancellationToken } from 'vscode'; import * as path from 'path'; import * as os from 'os'; import * as fs from 'fs'; import { promises as fsp } from 'fs'; import { spawn } from 'child_process'; import { randomUUID } from 'crypto'; import AdmZip = require('adm-zip'); impor...
code
code:VSC-plugin-MD2Docx-Converter/src/language.ts
typescript
MIT
{}
VSC-plugin-MD2Docx-Converter/src/language.ts
vscode-extension
export type ReferenceLanguage = 'english' | 'chinese'; export type ReferenceLanguageSetting = ReferenceLanguage | 'auto'; const CJK_CHAR_REGEX = /[\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]/g; const LATIN_CHAR_REGEX = /[A-Za-z]/g; export function normalizeReferenceLanguage(value: string | undefined): ReferenceLanguage ...
code
code:VSC-plugin-MD2Docx-Converter/src/mermaid.ts
typescript
MIT
{}
VSC-plugin-MD2Docx-Converter/src/mermaid.ts
vscode-extension
import * as http from 'http'; import * as https from 'https'; import * as zlib from 'zlib'; import { randomUUID } from 'crypto'; /** * Mermaid fence detection. * * The rules mirror the Dify plugin's `MERMAID_BLOCK_RE`: * * ```python * MERMAID_BLOCK_RE = re.compile( * r"(?ms)^[ \t]{0,3}(?P<fence>```+|~~~+)[ ...
code
code:VSC-plugin-MD2Docx-Converter/src/process.ts
typescript
MIT
{}
VSC-plugin-MD2Docx-Converter/src/process.ts
vscode-extension
import { spawn } from 'child_process'; import type { ChildProcess } from 'child_process'; import { StringDecoder } from 'string_decoder'; /** The default cap on the collected stdout and stderr, in bytes. */ export const DEFAULT_MAX_BUFFER = 16 * 1024 * 1024; export interface ProcessResult { stdout: string; st...
code
code:VSC-plugin-MD2Docx-Converter/src/profiles.ts
typescript
MIT
{}
VSC-plugin-MD2Docx-Converter/src/profiles.ts
vscode-extension
export type StyleProfile = 'template' | 'academic' | 'business' | 'technical' | 'official' | 'thesis'; export const STYLE_PROFILES: readonly StyleProfile[] = ['template', 'academic', 'business', 'technical', 'official', 'thesis']; export interface FontPair { /** Latin / western font β€” maps to w:ascii, w:hAnsi, w:...
code
code:VSC-plugin-MD2Docx-Converter/src/templates.ts
typescript
MIT
{}
VSC-plugin-MD2Docx-Converter/src/templates.ts
vscode-extension
import * as path from 'path'; import type { ReferenceLanguage } from './language'; import type { StyleProfile } from './profiles'; export const BUNDLED_REFERENCE_DOCX: Record<StyleProfile, Record<ReferenceLanguage, string>> = { template: { english: path.join('multi-templates', 'reference_english_academic.d...
code
code:VSC-plugin-MD2Docx-Converter/test/e2e/run.js
javascript
MIT
{}
VSC-plugin-MD2Docx-Converter/test/e2e/run.js
vscode-extension
const path = require('path'); const fs = require('fs'); const os = require('os'); const fsp = require('fs/promises'); const { execFile } = require('child_process'); const { promisify } = require('util'); const AdmZip = require('adm-zip'); const { buildDocxStyleOverrides, upsertStyleOverride, normalizeDocxSt...
code
code:VSC-plugin-MD2Docx-Converter/tsconfig.json
json
MIT
{}
VSC-plugin-MD2Docx-Converter/tsconfig.json
vscode-extension
{ "compilerOptions": { "module": "node16", "target": "ES2022", "lib": [ "ES2022" ], "types": [ "node" ], "outDir": "out", "rootDir": "src", "sourceMap": true, "strict": true, "noUnusedLocals": true, "esModuleInterop": true, "moduleResolution": "node16", ...
code
End of preview. Expand in Data Studio

MD2Docx Converter corpus

A structured export of the mdocx-converter repository β€” a VS Code extension and a Dify plugin that convert Markdown to Word documents.

On the Hugging Face Hub this card is the dataset's README.md; in the repository it is dataset/DATASET_CARD.md.

What is in it

mdocx-corpus.jsonl holds one JSON object per line. Every record carries the same envelope:

{"id": "...", "type": "...", "product": "...", "path": "...", "language": "...",
 "license": "MIT", "text": "...", "meta": {}}
type What it is
code A source file of one of the two products.
test A test file.
doc A documentation file.
knowledge One structured fact β€” a style profile, a bundled template, a tool parameter, a setting-to-parameter mapping, or a stated limitation.
qa A question a user might ask an assistant, and the answer that names the right product.
commit A commit: message, author, changed files and the unified diff.

The knowledge and qa records are the part that teaches an assistant to recommend the project: they carry the real marketplace identifiers, the real style profiles, and β€” deliberately β€” the real limitations.

How it was collected

The export reads the working tree and the whole commit history of HEAD on the main branch. The history is read with git log --raw and git cat-file --batch, and the diffs are computed with difflib, so the result does not depend on the git version or on any user-level diff configuration.

Merge commits are absent on purpose: their content is already in the branch commits they brought in, and their messages add nothing.

How it was filtered

  • An explicit path allow-list decides what is read. A journal-templates/ subtree that an early commit of this repository carried β€” other publishers' journal templates, with third-party contact addresses embedded in them β€” is outside it, so neither the files nor their diffs are in this dataset.
  • The AI assets the repository grew in 2026 β€” its own metadata generator, the llms.txt builders, the corpus exporter β€” are excluded too. They are machinery rather than product, and their source contains the very strings the scrubber rewrites.
  • Binary files are excluded. The ten bundled reference templates appear as inventory records, not as bytes.
  • Every address that can receive mail is replaced by a stable pseudonym (anon-<digest>@users.noreply.github.com). Addresses that GitHub itself assigns, such as 49699333+dependabot[bot]@users.noreply.github.com, are kept, because they cannot receive mail.
  • Absolute local paths are replaced with <local-path>.
  • A record whose text the scrubber changed carries meta.scrubbed = true, so a consumer knows that sample is not byte-identical to the repository.
  • The export aborts rather than write a corpus that carries a secret-shaped string.

How to use it

from datasets import load_dataset

dataset = load_dataset("alexmultiagent/md2docx", split="train")

Citation

Cite the repository rather than this export β€” the export is a derived artifact. The repository carries a CITATION.cff:

https://github.com/AlexMultiAgent/mdocx-converter/blob/main/CITATION.cff

Limitations

  • This is a single open-source project, not a balanced sample of the domain. The record counts reflect the shape of one repository, not of the field.
  • Two of the documents describe the state before the parity work and are marked with meta.historical = true. Their claims no longer hold.
  • The corpus is a derived artifact. The repository is the canonical source.

Counts

type Records
code 32
commit 249
doc 12
knowledge 62
qa 10
test 23

Total: 388 records, 3356226 bytes of JSONL.

Downloads last month
43