remend 1.3.0
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 newinlineKatexoption that defaults tofalseto 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°Cno longer renders as strikethrough). Adds a newsingleTildeoption (enabled by default) that can be disabled viaRemendOptions(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
RemendOptionsto selectively enable/disable handlersRemendHandlerfor custom handlers with priority-based executionLinkModeenum (protocol/textOnly) for incomplete link handling- Exported context utilities:
isWithinCodeBlock,isWithinMathBlock,isWithinLinkOrImageUrl,isWordChar