Repository navigation
v0.9.0
v0.9.0 is the next major release.
👉 Changelog
⚠️ Breaking Changes
- linkify: linkify is now a default plugin and uses linkify-it 6, with fuzzy matching off by default. Bare domains (
www.example.com) anduser:pass@URLs are no longer linked. Uselinkify({ fuzzyLink: true, urlAuth: true })to restore the old behavior. WithregisterDefaultPlugins: false, autolinking is now off. Upgradedmarkdown-exitto 2.1 (#549) - parser: removed the deprecated
htmloption. UseregisterDefaultPlugins: falseand registerhtml()yourself (#557) - html: HTML attribute values are now decoded the way browsers decode attributes (e.g.
?a=1©=2stays as written) (#511) - utils: removed the
decodeHTMLre-export fromcomark/utils.textContent(node, { decodeUnicodeEntities })is nowtextContent(node, { decodeHTML }), where you pass the decoder yourself (#511) - @comark/html:
@comark/html/renderno longer re-exports all ofcomark/render. Importrender,renderMarkdown,renderFrontmatterandresolveAttributesfromcomark/renderorcomark/utils. Output is always HTML, and components only get thehtmlandcommenthandlers (#517)
Deprecations
- The
linkifyparser option is deprecated in favor ofregisterDefaultPluginswithlinkify()(#549) - The
headingsplugin is renamed totitle-description, and its plugin name is now'title-description'(#554) renderMath(),validateMath()andMathConfig.throwOnErrorwill be removed in next rmajor (#510)
🚀 Enhancements
⚠️ linkify: move to markdown-exit 2.1 and make linkify a default plugin (#549)- add transformNode render hook to every renderer (#556)
⚠️ introduce comark/core and remove deprecated html option (#557)- plugins: add
heading-linksplugin (#555) - plugins: rename
headingsplugin totitle-description(#554) ⚠️ html: decode HTML attributes with attribute semantics, pluggable textContent decoder (#511)- html: add a smaller document renderer (#517)
- math: parse
\(…\)and\[…\]delimiters withbrackets(#515)
🔥 Performance
- react: reuse the parser during streaming (#397)
🩹 Fixes
- stringify: fix renderMarkdown round-trip losses from #525 (#527)
- deps: pin nuxt to 4.6.3 to avoid devServer.host crash (#560)
- auto-close: keep markdown-it-sub pairs unescaped (#563)
- shiki: join classes that transformers add to lines (#565)
- docs: resolve every comark dependency to the workspace (#561)
- angular: keep nested custom components inside their parent element (#551)
- parse: keep inline HTML content inside components and emphasis (#539)
- render: only render
bras a trailing-space break if it round-trips (#535) - render: don't indent a nested component that follows a list (#537)
- render: skip
$metadata when rendering markdown attributes (#540) - render: separate a block comment from the para before it in a list item (#543)
- render: keep raw HTML attribute names + values verbatim (#536)
- auto-close: don't rewrite a trailing table row that contains a dash (#542)
- render: write edge non-breaking spaces in table cells as
(#541) - render: don't end a paragraph after an inline comment (#544)
- invalid attribute detection within text (#547)
- parse: read a stray
</br>as a line break (#538) - docs: bump vue catalog pins to 3.5.44 to fix broken docs build (#524)
- shiki: avoid exponential backtracking in component attributes (#523)
📖 Documentation
- update npm download badge link in README.md (
b0d2d236) - lint docs content with comark-linter (#546)
- add remark-to-comark to the ecosystem (#531)
- share playground links that carry the Markdown in the URL (#526)
- list comark-ui, comark-linter, and the badge builder in the ecosystem (#520)
🏡 Chore
- stop shipping agent skills in the comark package (#569)
- add MIT license field to all published packages (#559)
- math: deprecate renderMath and validateMath (#510)
- docs: upgrade comark-docs layer to 217ac74 (#521)
🤖 CI
- automate releases with uppt and npm trusted publishing (#562)