remend 1.3.0 copy "remend: ^1.3.0" to clipboard
remend: ^1.3.0 copied to clipboard

A lightweight, zero-dependency library that intelligently completes incomplete Markdown syntax during streaming.

1.3.0 #

  • Add opt-in inline KaTeX completion ($formula$formula$) via a new inlineKatex option that defaults to false to avoid ambiguity with currency symbols. Also fixes block KaTeX completion when streaming produces a partial closing $.
  • Escape single ~ between word characters to prevent false strikethrough rendering (e.g. 20~25°C no longer renders as strikethrough). Adds a new singleTilde option (enabled by default) that can be disabled via RemendOptions(singleTilde: false).
  • Add comprehensive broken markdown variants test suite.

1.2.2 #

Initial Dart port of the remend npm package (v1.2.2).

This release establishes 1:1 parity with the TypeScript original: same handler pipeline, same logic, same behavior — adapted to Dart conventions.

  • Full implementation of all built-in handlers: bold, italic, bold-italic, inline code, strikethrough, links, images, block KaTeX, inline KaTeX, single tilde escape, comparison operators, HTML tags, and setext headings
  • RemendOptions to selectively enable/disable handlers
  • RemendHandler for custom handlers with priority-based execution
  • LinkMode enum (protocol / textOnly) for incomplete link handling
  • Exported context utilities: isWithinCodeBlock, isWithinMathBlock, isWithinLinkOrImageUrl, isWordChar
1
likes
150
points
165
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight, zero-dependency library that intelligently completes incomplete Markdown syntax during streaming.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on remend