Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 14:07
· 24 commits to main since this release
155d39b

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) and user:pass@ URLs are no longer linked. Use linkify({ fuzzyLink: true, urlAuth: true }) to restore the old behavior. With registerDefaultPlugins: false, autolinking is now off. Upgraded markdown-exit to 2.1 (#549)
  • parser: removed the deprecated html option. Use registerDefaultPlugins: false and register html() yourself (#557)
  • html: HTML attribute values are now decoded the way browsers decode attributes (e.g. ?a=1&copy=2 stays as written) (#511)
  • utils: removed the decodeHTML re-export from comark/utils. textContent(node, { decodeUnicodeEntities }) is now textContent(node, { decodeHTML }), where you pass the decoder yourself (#511)
  • @comark/html: @comark/html/render no longer re-exports all of comark/render. Import render, renderMarkdown, renderFrontmatter and resolveAttributes from comark/render or comark/utils. Output is always HTML, and components only get the html and comment handlers (#517)

Deprecations

  • The linkify parser option is deprecated in favor of registerDefaultPlugins with linkify() (#549)
  • The headings plugin is renamed to title-description, and its plugin name is now 'title-description' (#554)
  • renderMath(), validateMath() and MathConfig.throwOnError will be removed in next rmajor (#510)

compare changes

🚀 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-links plugin (#555)
  • plugins: rename headings plugin to title-description (#554)
  • ⚠️ html: decode HTML attributes with attribute semantics, pluggable textContent decoder (#511)
  • html: add a smaller document renderer (#517)
  • math: parse \(…\) and \[…\] delimiters with brackets (#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 br as 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)

🎉 New Contributors

❤️ Contributors