Skip to content

v0.1.0

Choose a tag to compare

@DaanRosendal DaanRosendal released this 20 Nov 10:18
· 99 commits to master since this release

Added

  • First release: createRenderer(container, options) with write, end, reset, and destroy.
  • Safe rendering of headings, emphasis, strikethrough, inline code, fenced code with a language label and Copy button, block quotes, nested and task lists, aligned tables, rules, links, autolinks, and hard line breaks.
  • Link policy: protocol allow-list, site-path approval, and onLinkClick.
  • Attribute-free b, strong, i, em, u, s, del, ins, mark, small, kbd, sub, and sup become elements. The html option narrows or turns off the list.
  • <details> (with an optional <summary>) renders native collapsible sections, nested up to 12 levels. The reader's toggle survives while streaming.
  • externalLinksNewTab option (default true).
  • Images: ![alt](url) renders an <img> by default, and the images option takes an origin list or false. Images load without a click, see SECURITY.md.
  • limmat/highlight adapter for @speed-highlight/core and optional limmat/style.css, which also works in a shadow root.
  • createRenderer empties its container, so a remount (React StrictMode) does not duplicate a finished message.
  • Tables are wrapped in a labelled role="group".