Skip to content

Releases

Merchart 1.4.1

Choose a tag to compare

@kiefeng kiefeng released this 10 Nov 05:45

Clears the warnings from the community review.

  • The xychart maximum was computed with flatMap and a spread into Math.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/view and @codemirror/state are now listed as dependencies instead of only arriving through obsidian.
  • Added the eslint setup and npm run lint, so the same rules can run before another submission.

Merchart 1.4.0

Choose a tag to compare

@kiefeng kiefeng released this 10 Nov 03:48

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

Choose a tag to compare

@kiefeng kiefeng released this 03 Nov 11:40

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

Choose a tag to compare

@kiefeng kiefeng released this 03 Nov 03:56

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

Choose a tag to compare

@kiefeng kiefeng released this 03 Nov 03:44

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

Choose a tag to compare

@kiefeng kiefeng released this 03 Nov 03:22

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

Choose a tag to compare

@kiefeng kiefeng released this 03 Nov 03:06

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