Releases: markmap/markmap
Releases · markmap/markmap
v0.18.0
Breaking Changes
-
Node Data Type Change: The data of each node now uses the
INode
type instead ofFlextreeNode<INode>
. Ensure your implementation is updated to handle this change. -
Asynchronous
mm.setData
: Themm.setData
method is now asynchronous. If your code depends on the rendered DOM of markmap, you must await the promise returned bymm.setData
. For example:await mm.setData(root); mm.fit();
Notable Changes
- Render Efficiency: Enhanced rendering performance by eliminating the test round rendering process.
- Size Detection: Improved size detection accuracy by adding
ResizeObserver
for rendered nodes. - Active Node Highlighting: Automatically highlights the active node for better user interaction.
Full Changelog: v0.17.2...v0.18.0
v0.17.0
v0.15.0
Features
- Added offline mode for the downloaded HTML so it could work without Internet connection
- Added custom URL builder to easily switch between different CDNs or self-hosted assets
- Switched from Prism.js to highlight.js for better esm/bundler support
Breaking Changes
- Dropped CJS for markmap-view and markmap-cli
Toolbar
// Old
const el = Toolbar.create(mm);
// Now
const toolbar = Toolbar.create(mm);
const { el } = toolbar;