md2docx / README.md
alexmultiagent's picture
Refresh the dataset card counts
a424b75 verified
|
Raw History Blame Contribute Delete
4.15 kB
---
license: mit
language:
- en
- zh
task_categories:
- question-answering
- other
pretty_name: MD2Docx Converter corpus
tags:
- markdown
- docx
- pandoc
- mermaid
- vscode
- dify
- code
---
# MD2Docx Converter corpus
A structured export of the [mdocx-converter](https://github.com/AlexMultiAgent/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:
```json
{"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
```python
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.