everydaymind131 downloadsExport Markdown notes to Hangul HWPX documents formatted by HWPX templates, with an MCP-like API for AI agent plugins.
HWPX Exporter exports Markdown notes to Hangul (Hancom Office) HWPX documents. The look of the output comes from an HWPX template that you edit in Hangul. The plugin also gives AI agent plugins an MCP-like API to check and run exports.
![[embeds]], inline $math$, horizontal rules and front matter..hwpx template holds markers such as {{H1}}, {{BODY}} and {{QUOTE}}. The character and paragraph formatting at each marker is applied to the matching part of the note. Design lives in the template, not in the plugin.HWPX templates in your vault with the bundled templates and the template guide, and selects that folder in the settings. Existing files are never replaced..hwpx file is written next to the note (or to a fixed folder) and opened with the default app.To restore the bundled templates or install them into another folder, run Install bundled templates or use the button in the settings.
Command names follow the app language.
Copy Sample template.hwpx (견본 템플릿.hwpx in Korean), open it in Hangul, change the formatting of each marker and save it under a new name in the template folder. The installed guide explains every marker and option. Run Inspect HWPX template after editing.
.hwpx files are offered on export.HWPX Exporter exposes an agentinterop v1 capability provider on its plugin instance. A compatible agent host can read the tool definitions and call them after you approve them in the host:
get_export_options: available templates, output location, naming and capture settings.check_export: a trial conversion of one note in the OS temp folder. It reports the output path, the note's structure, images that cannot be embedded and code blocks that would be captured. Nothing is written to the vault.export_note: exports a note to a new .hwpx file. This is a commit tool: the host shows the exact file to be created and asks you before anything is written. It never replaces an existing file and never writes into hidden folders.agentinterop v1 is the author's own convention, not an official or widely recognized standard. It lets an Obsidian plugin that runs an AI agent discover tools offered by other plugins through an MCP-like API, without those plugins knowing about any particular agent host.
What this gives you:
read or commit here), so the host knows which calls only read and shows you the exact file before a commit tool writes it.Verbex is currently the only agent host that implements agentinterop v1: EverydayMind/obsidian-verbex.
How HWPX Exporter implements it:
Symbol.for('dev.agentinterop.capability-provider'). The provider has protocol: 'agentinterop', protocolVersion: 1, describe() (provider info, instructions and tool definitions with JSON Schema inputs) and callTool(name, args) (returns content plus structuredContent, or an error with a code). export_note additionally goes through resolveTarget and commit.prepare / commit.execute._meta hints under the dev.agentinterop/ prefix: effect (read or commit), group, keywords, resourceTypes and maxResultChars. A host shows these tools to a model only when a request mentions a keyword such as "hwpx", "hwp", "한글" or "export".agentinterop:providers-changed on load and unload so a host can refresh its tool list.The plugin works the same without an agent host.
fs module, which is why the plugin is desktop only. It reads the note, the selected template and the images the note embeds, all inside the vault (an image link that does not resolve to a vault file is read only from inside the note's folder). It writes only the exported .hwpx file at the vault path shown in the settings, and a temporary folder in the OS temp directory while an agent checks or prepares an export; that folder is removed right after.HWPX templates; an agent's approved export_note result..hwpx (usually Hangul).Once listed, install HWPX Exporter from Settings → Community plugins. To install manually, copy main.js, manifest.json and styles.css from the latest release into <Vault>/.obsidian/plugins/md-to-hwpx/.
You need Hangul (Hancom Office) or another HWPX viewer to open the output. The plugin itself does not need it.
npm ci
npm run build # bundles obsidian/main.ts, the converter in src/ and the templates into main.js
npm run typecheck
npm run lint
The converter is derived from pypandoc-hwpx (MIT); LICENSE lists the copyright holders. It bundles marked, JSZip, fast-xml-parser and gray-matter under their MIT licenses.