This extension registers Hongdown as a formatter for Markdown and MDX files. It uses the bundled WebAssembly formatter by default, so no separate Hongdown installation is required.
Usage
Install the extension, then select Format Document in a Markdown file. To make Hongdown the default Markdown formatter:
{
"[markdown]": {
"editor.defaultFormatter": "hongminhee.hongdown"
},
"[mdx]": {
"editor.defaultFormatter": "hongminhee.hongdown"
}
}
Settings
hongdown.backend:wasmby default. Set toclito run the system Hongdown CLI.hongdown.cli.path: CLI executable path for theclibackend. The defaulthongdownresolves fromPATH.hongdown.config.path: explicit config path. Relative paths are resolved from the workspace folder, or from the file's containing directory when no workspace is open. When unset, the extension uses .hongdown.toml in the workspace root when present.
The WASM backend cannot execute external code block formatters configured in
code_block.formatters. If you need those, use the cli backend.
License
Distributed under the GPL-3.0-or-later.