
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@markdown-media/wasm
Advanced tools
MDM Core — Convert HWP/HWPX/PDF/DOCX to Markdown via WebAssembly. Rust-powered, browser-ready.
Convert HWP, HWPX, PDF, DOCX to clean Markdown — in the browser or Node.js.
Rust-powered WebAssembly engine. No server required.
npm install @markdown-media/wasm
<input type="file" id="file" accept=".hwp,.hwpx,.pdf,.docx" />
<pre id="output"></pre>
<script type="module">
import init, { convert_to_markdown, detect_format } from '@markdown-media/wasm';
await init();
document.getElementById('file').addEventListener('change', async (e) => {
const file = e.target.files[0];
const data = new Uint8Array(await file.arrayBuffer());
const format = detect_format(data, file.name);
console.log('Detected format:', format);
const markdown = convert_to_markdown(data, file.name);
document.getElementById('output').textContent = markdown;
});
</script>
import { readFileSync } from 'fs';
import init, { convert_to_markdown, convert_to_json } from '@markdown-media/wasm';
await init();
const data = new Uint8Array(readFileSync('report.hwp'));
const markdown = convert_to_markdown(data, 'report.hwp');
console.log(markdown);
// Or get structured output (format, version, markdown, metadata)
const json = JSON.parse(convert_to_json(data, 'report.hwp'));
console.log(json.metadata);
convert_to_markdown(data: Uint8Array, filename: string): stringConvert a document to Markdown. Format is auto-detected from filename and magic bytes.
convert_to_json(data: Uint8Array, filename: string): stringConvert a document to a JSON string:
{
"format": "hwp",
"version": "5.0.1.7",
"markdown": "# Title\n\nContent...",
"metadata": { "author": "...", "title": "..." }
}
detect_format(data: Uint8Array, filename: string): stringReturns "hwp", "hwpx", "pdf", "docx", or "unknown".
get_version(): stringReturns the engine version.
| Format | Extension | Status |
|---|---|---|
| HWP 5.0 | .hwp | Full support |
| HWPX | .hwpx | Full support |
.pdf | Text extraction | |
| DOCX | .docx | Full support |
pip install mdm-parser (PyPI)cargo install mdm-core (Rust)MIT
FAQs
MDM Core — Convert HWP/HWPX/PDF/DOCX to Markdown via WebAssembly. Rust-powered, browser-ready.
The npm package @markdown-media/wasm receives a total of 2 weekly downloads. As such, @markdown-media/wasm popularity was classified as not popular.
We found that @markdown-media/wasm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.