Skip to content

v0.3.22

Choose a tag to compare

@github-actions github-actions released this 13 Nov 04:26
· 19 commits to main since this release

Highlights

Mermaid diagrams. A ```mermaid block in a reply, a plan or the plan approval card is now drawn as a diagram, in the colors of the theme you use.

  • While a reply is being written, the block shows its source; it is drawn once the reply is complete.
  • On hover: switch to the source, copy it, or open a larger view to zoom and pan.
  • When a block doesn't parse, its source stays, with the reason below. Blocks over 20,000 characters stay as code.
  • Safety: diagrams are drawn at Mermaid's strict security level, with labels as plain SVG text: no scripts, links or HTML in a diagram run.
  • Loading: the drawing library (Mermaid 12.2.0) loads with the first diagram, in its own files, so pages without diagrams load as before.
  • Memory: drawn diagrams are kept only by the session view that shows them, and are freed when you leave it.

Faster visits. The app's script and style files are named by their content, and the browser now keeps them. Before, it downloaded the whole app on every visit. A new version is still picked up at once.

Upgrading: the download is about 5 MB larger, for the diagram library.

Changelog

  • f14a515 feat: draw Mermaid diagrams in replies, and let the browser keep built assets