Repository navigation
Releases
Merchart 1.4.1
Clears the warnings from the community review.
- The xychart maximum was computed with
flatMapand a spread intoMath.max; the review's type-aware lint saw both as unsafe. Replaced with a plain loop, no behaviour change. - The settings control value no longer stringifies an unknown value, and one reassigned let became const.
@codemirror/viewand@codemirror/stateare now listed as dependencies instead of only arriving throughobsidian.- Added the eslint setup and
npm run lint, so the same rules can run before another submission.
Merchart 1.4.0
Every diagram type now ships a full template — subgraphs, styling, relation kinds, card metadata — one click from the title bar, so adding a feature means editing a line instead of looking up syntax.
Sankey node names must be ASCII on Obsidian 1.15's bundled renderer (quotes do not help). A Chinese node name therefore builds a flowchart version of the same flows: value on each arrow, arrow width scaled by volume.
XY charts take series lines now: bar: 2026, 40, 85 and line: 2025, 30, 70 give a comparison chart with a legend, while y: 40, 85 plus type: bar still draws a single series.
Generated and pasted code gets a final pass that folds full-width punctuation in syntax positions back to half-width, and reverse editing only runs when the rebuilt code matches the original byte for byte, so subgraphs and styling are never silently dropped.
Merchart 1.2.0
Edit diagrams where they live: put the cursor inside a mermaid block and a pencil button appears on the fence line. One click opens the editor, no command needed. The button hides when the cursor leaves the block.
Merchart 1.1.2
Stays within the declared minimum app version.
- Language detection now reads the document language instead of Obsidian's 1.13-only getLanguage(), so no API newer than 1.4.0 is used
- Radar chart upper bound computed with an explicit loop, clearing four unsafe-type warnings
Merchart 1.1.1
Addresses plugin review feedback.
- Settings heading uses Setting.setHeading() instead of a raw h2
- Inline styles replaced with setCssStyles()
- Drop builtin-modules in favour of node:module
- Language detection uses Obsidian's getLanguage()
- Added getSettingDefinitions() so settings appear in Obsidian's settings search on 1.13+
- Removed scrollbar-width for wider compatibility
Merchart 1.1.0
Mobile support.
- Responsive layout: on narrow screens the dialog goes full screen, the type list becomes a horizontal strip, the drag handle is hidden
- isDesktopOnly is now false
- Swipeable type chips on touch devices
Merchart 1.0.0
Initial release.
- 22 diagram types, covering everything Obsidian renders
- Chinese-friendly input: ASCII identifiers generated automatically, full-width punctuation normalized before parsing
- Live preview, resizable dialog with zoom, bilingual UI that follows Obsidian's language
- Reverse editing for five diagram types
- Built for Obsidian 1.15 and the Pele renderer