Skip to content

Releases

flowdown 0.9.1

Choose a tag to compare

@github-actions github-actions released this 22 Nov 01:17
9f67dcc

Patch Changes

  • 61e7293: Formulas are set closer to TeX. A subscript on a letter with a tail (y_i, \mu_0) no longer sits
    lower than one on x, nor a superscript on a tall letter higher; a name stands a thin space from
    the term before it (y_i \log p_i); a brace over or under an expression is a brace with its point
    in the middle; words over an arrow sit just above it and keep their own width. In a terminal a
    leftward arrow under words has its head on the left. math.css carries the font with the new
    constants.

flowdown 0.9.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 00:05
28f2a10

Minor Changes

  • 1bb649e: Formulas and diagrams are built in, with no dependency.

    • Math is MathML. @localix-ai/flowdown/math writes $…$, $$…$$ and ```math as
      MathML the browser lays out itself (@localix-ai/math, 11 KB), nine times faster than KaTeX on the
      formulas agents write. Import @localix-ai/flowdown/math.css (the math font) in place of KaTeX's
      stylesheet, and drop the katex dependency: it is no longer a peer. A formula is now
      <span class="fd-math"> (with fd-math-display for a display formula) around a <math>; a page
      that styled .katex styles .fd-math. A formula cut off or with an unknown command is drawn as far
      as it goes, never an error.
    • Diagrams without Mermaid. <Markdown mermaid> (true) draws ```mermaid fences with
      @localix-ai/diagram: every kind Mermaid has, as modern SVG in the page's colours, fetched with the
      first diagram, over 20 times faster than Mermaid and 56 KB against its 1.6 MB. A loader
      (() => import('mermaid')) still draws with Mermaid. builtInDiagrams is exported from
      @localix-ai/flowdown/mermaid for a frame of your own.
    • The terminal reads formulas with the same parser as a page: every environment, typefaces as
      Unicode's math letters, braces with their labels, \xrightarrow.

Patch Changes

  • A code block still being written now draws, at every character, what one parse of it draws: its
    language's escapes and character references are resolved as they are once it closes
    (```foo\+bar names foo+bar), and a block of one empty line keeps that line. Every example of
    CommonMark's and GitHub's specifications is now fed to the renderer a character at a time, and
    every frame, streaming and finished, must be what one parse of that frame draws.
  • A token costs less of the main thread: a reply is compared with the last one once, not four
    times. The document checks it and hands what it checked down, so the scan for an open fence,
    the splitter, a growing fence and its colourer, and a long list or quote compare only what is
    new. The reply is no longer scanned for \r three times a token, a fence still being written is
    no longer searched whole for a form's [!, and a block with no < before a letter is no longer
    parsed only to learn that it has no HTML. A long fence, the dialect's forms and a long report
    stream in less main-thread time. Nothing drawn changes: a page that is edited, cut back or
    regenerated while it streams draws, at every step, what a new page draws.
  • @localix-ai/flowdown/document exports grownOf(block): what the document checked of its last
    block against the last update's. A renderer of its own passes it to growingFence as grown.

@localix-ai/math 0.1.1

Choose a tag to compare

@github-actions github-actions released this 22 Nov 01:16
9f67dcc
  • Scripts sit where TeX sets them. A subscript on a letter with a tail (y_i, p_i, \mu_0)
    sat lower than one on x, and a superscript on a tall letter (\theta^2, b^2) higher: the
    math font's own constants are now TeX's, so a script on a single letter sits where x's does.
  • A name stands a thin space from the term before it: y_i \log p_i, x^2 \sin y, on a page
    and in a terminal, as n \log n already did.
  • A brace over or under an expression is a brace, with its point in the middle, where it was a
    bracket with rounded ends.
  • Words over an arrow sit just above it (\xrightarrow{f}), where they floated 0.8 em up, and
    long words keep their own width instead of running over the next symbol.
  • In a terminal, a leftward arrow under words (\xleftarrow) has its head on the left.

flowdown 0.8.0

Choose a tag to compare

@rsaryev rsaryev released this 21 Nov 13:55
bench(linux-2-core): flowdown 0.8.0, our rows only, three passes

flowdown and flowdown+highlight measured again with the built-in
highlighter; the other renderers' rows are kept from the machine's
reference. With highlighting, the 50,000-character code reply streams in
415 ms frame by frame (3335 ms with highlight.js) and 1420 ms token by
token (14,754 ms); the long answer in 1045 ms (1706 ms). chat-5k frame by
frame is 56.1 ms against markdown-to-jsx's 48.8: a cell of this size
moves by half of that from one run to the next here (40 to 67 ms for one
build), as the README's section on this machine says. Every budget holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011qcwzcvC2yxKDfLTRyCg6U

flowdown 0.7.2

Choose a tag to compare

@rsaryev rsaryev released this 21 Nov 07:14
v0.7.2

ci(rust-release): leave a release made with its tag alone, as the npm…

flowdown (Rust) 0.1.2

Choose a tag to compare

@rsaryev rsaryev released this 21 Nov 07:16
rust-v0.1.2

ci(rust-release): leave a release made with its tag alone, as the npm…

@localix-ai/math 0.1.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 17:16
  • First version. TeX as agents write it, read by one parser into MathML Core for a page (with
    STIX Two Math cut to what replies use) and into Unicode for a terminal, on one line (toText) or
    on rows (toRows). Reads any text and never throws; every prefix of a stream draws.

@localix-ai/highlight 0.1.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 13:23

The first release: syntax highlighting for code that streams, made for what agents write.

  • Line by line. Each line is read from the state the line above ended in (inside a comment, a
    string, a template, a heredoc), so a complete line is coloured once, the line being written costs
    only itself, and what streams is coloured exactly as the finished text: createStream(language)
    for code that arrives in pieces, lines(language) for a renderer that keeps its lines.
  • 26 languages: shell and shell sessions (console), diffs, TypeScript and JavaScript with
    JSX, Python, Go, Rust, Java, Kotlin, Swift, C, C++, C#, PHP, Ruby, SQL, JSON, YAML, TOML, INI and
    .env, Dockerfile, CSS and SCSS, HTML and XML, Markdown with its fences read as their language.
  • highlight.js's classes, so its themes apply; the code is escaped; a language it does not
    know is null, never a guess. No dependencies, 12 KB gzipped.

@localix-ai/diagram 0.1.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 17:16
  • First version. Every kind of Mermaid diagram, read and laid out once, drawn as SVG for a page
    (toSVG) and as rows for a terminal (drawDiagram, also @localix-ai/diagram/terminal). The
    terminal drawing came from @localix-ai/flowdown/tui/diagram, which now draws with this package.

flowdown 0.7.1

Choose a tag to compare

@github-actions github-actions released this 17 Nov 12:49
45032ea

Patch Changes

  • adb3523: The package's homepage and README links are https://flowdown.localix.ai; flowdown.dev redirects there.

  • 6ec2a16: Two shapes models write are read as they mean them. A --- right before the next tab's heading
    parts two tabs instead of ending [!TABS] after the first, and is not drawn; streaming keeps all
    the tabs in one block. A formula may start with a number: $2 + 2 = 4$ is typeset, while prices
    ($5 and $10, pay $5 now and 7$ later) stay text. A price-looking $ opens a formula only when
    it closes with no other $ inside and holds a sign only math writes (= ^ _ \ { } < >).

    A page that numbers or bullets its lists outside the layer flowdown's styles sit in no longer
    puts its number or bullet beside the rows of steps, stats, pros and cons, sources and checklists:
    each row declares list-style: none itself, which wins over the marker it would inherit.