Releases: jfcere/ngx-markdown
v18.1.0
New features and enhancements
- Add support for emoji-toolkit version 9.0.0, Unicode 15.1 (#546) (39dfb63) @jfcere
- Add support for mermaid version 11 (#547) (0c81a5f) @hardikpatel043
Bug Fixes
Special Thanks
🥇 Thanks to @klofi for his contribution in fixing globally imported CLIPBOARD_OPTIONS
🥇 Thanks to @hardikpatel043 for his contribution in adding support for mermaid 11.0.0
v18.0.0
Update Angular 18
Library has been updated to support Angular 18.
It is recommended to stick with ngx-markdown v17.x.x if you are using Angular 17.
New features and enhancements
- Update to Angular 18
- Remove clipboard button inline opacity transition and add CSS classes
⚠️ Breaking changes
Clipboard Plugin
The clipboard button no longer has an opacity transition by default. Instead, CSS classes have been added to allow customization as documented in the README.md and the Plugins > Clipboard Plugin section of the demo site.
To keep the previous behavior, simply add the following CSS to your global styles.css/scss
styling file.
.markdown-clipboard-toolbar {
opacity: 0;
transition: opacity 250ms ease-out;
}
.markdown-clipboard-toolbar.hover {
opacity: 1;
}
Special thanks
🥇 Thanks to @pkurcx for his contribution to update Angular 18.
Commits
v17.2.1
v17.2.0
v17.1.1
Bug Fixes
- Relax provideMarkdown method usage to not require environment provider (#490) (cf5a1df) @NateRadebaugh
Special Thanks
🥇 Thanks to @NateRadebaugh for his contribution.
v17.1.0
New features and enhancements
- Add support for standalone component (#484) (e1245d4) @robertIsaac, @jfcere
Bug Fixes
Special Thanks
🥇 Thanks to @robertIsaac for his contribution to add support for standalone components.
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.
Commits
v16.0.0
Update Angular 16
Library has been updated to support Angular 16.
It is recommended to stick with ngx-markdown v15.x.x if you are using Angular 15.
New features and enhancements
- Update to Angular 16
- Add required version ranges to install instructions on
README.md
Commits
v15.1.2
Bug Fixes
- Allow support for
zone.js
v13.0.0 (#443) (ad87be3) @json-derulo
Special Thanks
🥇 Thanks to @json-derulo for his contribution.