Skip to content

v0.1.3

Choose a tag to compare

@XueyanZhang XueyanZhang released this 14 Nov 15:30
· 2 commits to main since this release
  • Properties: every name and value is written as valid YAML. A name or value that needs
    quotes gets them ("key: x #[": "{oops: [1, \""), and a bracketed list stays bare only
    when every item is plain, so the block no longer falls back to source after an edit.
  • Links: brackets are a link only when they have a destination or name a reference defined
    in the document, the same rule in live, reading, plain-text copy and HTML. [foo] with no
    definition is plain text with its brackets, no longer coloured as a link; [a]() is a
    link. [!FOOBAR] and other unknown callout types keep their brackets.
  • Placeholders: math, Mermaid diagrams, formulas in table cells and images show one
    placeholder box until they render, never their source, and keep their size: the written
    size, then what was drawn this session, then the height before an edit. A formula that
    fails shows its source, underlined.
  • Tables: empty cells keep a usable minimum size (one line high, about three characters
    wide), in the editor and in HTML export.
  • Find: matches inside table cells are highlighted, the current one as current, in live and
    reading mode. Opening Find with a cell open closes the cell so the table shows every match;
    Cmd+F in a cell opens the document's Find; closing Find reopens the cell. A match in hidden
    source (a long link's URL, a list marker) is shown when it is the current one.
  • Caret: Tab or Find moving to a cell below the fold scrolls that cell into view. Reading
    mode draws no caret.
  • Mermaid: a diagram larger than a size threshold shows a hint and a Render button instead of
    rendering on its own, so opening or typing in a document with one does not freeze. A wide
    diagram scales down only to a readable size, then scrolls sideways in its own box; pressing
    its scrollbar does not open the source. A failed Mermaid load is not retried in a loop.
  • Lists: a task item's checkbox replaces its bullet (• ☐ → ☐), and nested items under task
    and plain items line up.
  • Narrow layouts: properties stack their name above the value when the block is narrow, and
    sideways-scrolling blocks (tables, block math, wide diagrams) show an edge fade on the side
    that has more.
  • @openmarkdown-dev/css: the empty-cell minimum size, with box-sizing: border-box on
    cells.
  • Examples and the home page's script snippet use 0.1.3.