Skip to content

v0.15.0

Choose a tag to compare

@github-actions github-actions released this 18 Oct 20:45
· 24 commits to main since this release
ac6c849
  • @tooee/cli@0.15.0
  • @tooee/choose@0.15.0
  • @tooee/ask@0.15.0
  • @tooee/commands@0.15.0
  • @tooee/clipboard@0.15.0
  • @tooee/config@0.15.0
  • @tooee/diff@0.15.0
  • @tooee/fuzzy@0.15.0
  • @tooee/layout@0.15.0
  • @tooee/marks@0.15.0
  • @tooee/mermaid-pele@0.15.0
  • @tooee/overlays@0.15.0
  • @tooee/panels@0.15.0
  • @tooee/renderers@0.15.0
  • @tooee/router@0.15.0
  • @tooee/search@0.15.0
  • @tooee/shell@0.15.0
  • @tooee/themes@0.15.0
  • @tooee/toasts@0.15.0
  • @tooee/view@0.15.0

Add @tooee/mermaid-pele, an opt-in Pele image renderer for Mermaid fences (924199f)

The new package draws ```mermaid fences as images. It renders each diagram with Pele, applies the Tooee theme colours, and rasterizes it with resvg for the OpenTUI <image> element. Pele supports more diagram types than the ASCII renderer, for example pie, quadrant, timeline, and gantt charts.

Register it with codeBlockRenderers: { mermaid: createPeleMermaidRenderer() }. By default, a fence that Pele cannot draw, or a terminal with no pixel image support, falls back to the beautiful-mermaid ASCII renderer. The strategy option can put ASCII first or turn the ASCII step off.

The default Mermaid renderer in MarkdownView and @tooee/view does not change.