Skip to content

v22.0.0

Choose a tag to compare

@jfcere jfcere released this 10 Jun 05:00
· 19 commits to master since this release

Update Angular 22

It is recommended to stick with ngx-markdown v21.x.x if you are using Angular 21.

New features and enhancements

  • Add support for Angular 22
  • Migrate math rendering with KaTeX from katex/auto-render to marked-katex-extension fixing important rendering problems
  • Deprecate MarkdownModule, which will be removed in the next major release in favour of provideMarkdown

⚠ Breaking changes

Fix for KaTeX math rendering

  • KaTeX support now requires the optional marked-katex-extension package in addition to katex.
  • Global KaTeX options can now be provided through the new katexOptions provider config in MarkdownModule.forRoot() or provideMarkdown() using the KATEX_OPTIONS injection token.
  • Updated KaTeX installation instructions: include katex.min.css and do not rely on the old KaTeX auto-render script configuration.
Migration guidance

Remove the old KaTeX script entries and keep styles entry from angular.json:

"styles": [
+ "node_modules/katex/dist/katex.min.css"
],
"scripts": [
- "node_modules/katex/dist/katex.min.js",
- "node_modules/katex/dist/contrib/auto-render.min.js",
]

Install new extension:

npm install katex@^0.16.0 marked-katex-extension@^5.0.0 --save

If you previously used MarkdownService.render() with katex or katexOptions, move KaTeX configuration to the new provider-style setup and enable KaTeX at parse time instead.

📘 See the Math Rendering section in the README.md for more information.

Commits

  • chore(ci): increase demo build budget by @jfcere in #652
  • feat!: update to angular 22 by @jfcere in #659
  • fix(katex)!: fix parsing by migrating to marked-katex-extension by @jfcere in #660
  • deprecate(module): mark MarkdownModule as deprecated by @jfcere in #661

Security fixes

  • build(deps): bump postcss from 8.5.8 to 8.5.14 by @dependabot[bot] in #647
  • build(deps): bump ip-address and express-rate-limit by @dependabot[bot] in #648
  • build(deps): bump hono from 4.12.14 to 4.12.18 by @dependabot[bot] in #649
  • build(deps): bump fast-uri from 3.1.0 to 3.1.2 by @dependabot[bot] in #650
  • build(deps): bump mermaid from 11.13.0 to 11.15.0 by @dependabot[bot] in #651
  • build(deps): bump tmp from 0.2.5 to 0.2.7 by @dependabot[bot] in #655
  • build(deps): bump hono from 4.12.18 to 4.12.23 by @dependabot[bot] in #656

Full Changelog: v21.3.0...v22.0.0