File size: 4,146 Bytes
c127d0f
 
 
 
 
 
 
bb708ae
c127d0f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bb708ae
 
 
c127d0f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a424b75
c127d0f
 
 
 
 
a424b75
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
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.