v17.0.0
Update Angular 17
Library has been updated to support Angular 17.
It is recommended to stick with ngx-markdown v16.x.x if you are using Angular 16.
New features and enhancements
- Update to Angular 17
- Update
marked
lib to ^9.0.0 - Add support for marked extensions
- Update
mermaid.js
optional dependency to ^10.6.0 - Update
emoji-toolkit
optional dependency to ^8.0.0 which supports unicode 15.0
⚠️ Breaking changes
- All options that were removed from marked has been deleted from this library too, see more at https://marked.js.org/using_advanced#options
- The
srcRelativeLink
input property is removed as thebaseUrl
option has been removed from marked, use https://www.npmjs.com/package/marked-base-url instead MarkdownService.parse()
method now returnsPromise<string>
instead ofstring
, because marked parsing is doing soMarkdownPipe
now returnsPromise<string>
instead ofstring
and will need to be combined withasync
pipe to work correctly- Both
markedOptions
andclipboardOptions
configuration properties used in theMarkdownModule.forRoot(config: MarkdownModuleConfig)
method now require to be provided with theMARKED_OPTIONS
andCLIPBOARD_OPTIONS
injection token. - The
@types/marked
dependency is no longer needed and needs to be removed
Additional information
- Including
marked.min.js
file in thescripts
section of theangular.json
when using@angular\cli
is no longer needed and can safely be removed as it is automatically imported.
Special thanks
🥇 Thanks to @json-derulo for his contribution to update Angular 17.
🥇 Thanks to @robertIsaac for his contribution to update marked
library and adding support for extensions.
🥇 Thanks to @sarfudheen for his contribution to update mermaid.js
library.