Context
I noticed that markmap-vscode already supports offline HTML export via the undocumented embedAssets option (added in commit 288d5b1). It works well — setting embedAssets: true in frontmatter or defaultOptions produces a self-contained HTML file with all JS/CSS inlined.
However, this feature is hard to discover:
- It's not listed in the JSON Options documentation
- It's not in the CHANGELOG
- There's no dedicated VS Code setting for it
Proposal
-
Add a VS Code setting like markmap.export.offline (boolean, default false) so users can enable it from the Settings UI without writing JSON in defaultOptions.
-
Document embedAssets in the JSON Options page, or at least mention offline export in the VS Code extension README.
Minor: naming consistency
markmap-cli uses --offline for the same feature. It might be worth aligning the naming — either both use "offline" or both use "embedAssets" — to make it easier for users to discover across tools.
Happy to help
I can open a PR if you think this direction makes sense. The change would be small — mainly adding a configuration entry in package.json and a few lines in exportAsHtml to read it.
Context
I noticed that
markmap-vscodealready supports offline HTML export via the undocumentedembedAssetsoption (added in commit 288d5b1). It works well — settingembedAssets: truein frontmatter ordefaultOptionsproduces a self-contained HTML file with all JS/CSS inlined.However, this feature is hard to discover:
Proposal
Add a VS Code setting like
markmap.export.offline(boolean, defaultfalse) so users can enable it from the Settings UI without writing JSON indefaultOptions.Document
embedAssetsin the JSON Options page, or at least mention offline export in the VS Code extension README.Minor: naming consistency
markmap-cliuses--offlinefor the same feature. It might be worth aligning the naming — either both use "offline" or both use "embedAssets" — to make it easier for users to discover across tools.Happy to help
I can open a PR if you think this direction makes sense. The change would be small — mainly adding a configuration entry in
package.jsonand a few lines inexportAsHtmlto read it.