Repository navigation
test: add regression tests for $ tokens without math plugin (#136) - #615
Conversation
The auto-close bug from #136 (a trailing `$skill-name` treated as an unclosed inline math opener, producing `$skill-name$`) was fixed in #394 (v0.7.0): math auto-close now only runs when the math plugin is registered. These tests lock that fix in place. No source changes. - `test/auto-close.test.ts`: `autoCloseMarkdown` with default options leaves the reporter's three inputs unchanged. - `test/math.test.ts`: end-to-end through `parseMarkdown`/`renderMarkdown`. Without the math plugin, the inputs parse to plain text or a link with `$imagegen` text and the correct href, and render back to the source. With `math()`, a trailing `Value $x` is still auto-closed into inline math. This checks the `math: hasPlugin('math')` wiring in `index.ts` in both directions. Closes #136
|
Note The title starts with
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
comark
@comark/angular
@comark/ansi
@comark/html
@comark/nuxt
@comark/react
@comark/svelte
@comark/vue
commit: |
The auto-close bug from #136 (a trailing
$skill-nametreated as an unclosed inline math opener, producing$skill-name$) was fixed in #394 (v0.7.0): math auto-close now only runs when the math plugin is registered. These tests lock that fix in place. No source changes.test/auto-close.test.ts:autoCloseMarkdownwith default options leaves the reporter's three inputs unchanged.test/math.test.ts: end-to-end throughparseMarkdown/renderMarkdown. Without the math plugin, the inputs parse to plain text or a link with$imagegentext and the correct href, and render back to the source. Withmath(), a trailingValue $xis still auto-closed into inline math. This checks themath: hasPlugin('math')wiring inindex.tsin both directions.Closes #136
Summary by CodeRabbit