Skip to content

Releases: jfcere/ngx-markdown

v19.0.0

20 Nov 20:52
Compare
Choose a tag to compare

Update Angular 19

Library has been updated to support Angular 19.

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

New features and enhancements

  • Update to Angular 19
  • Update marked dependency to 15.0.0
  • Add global configuration for mermaid plugin and update options

⚠ Breaking changes

Marked dependency

Marked has been updated to the latest version, 15.0.0. The renderer token override functions have changed and need to be adjusted. Extension packages will also need to be updated to match the new marked version.

Mermaid plugin

Mermaid options have been updated and bring model changes. Minor adjustments will need to be made, please refer to lib/src/mermaid-options.ts for updated typings.

Special thanks

🥇 Thanks to @pkurcx for his contribution to update Angular 19.

Commits

v18.1.0

01 Oct 18:56
Compare
Choose a tag to compare

New features and enhancements

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

26 May 16:06
Compare
Choose a tag to compare

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

21 Apr 23:58
Compare
Choose a tag to compare

Bug Fixes

v17.2.0

31 Mar 00:19
07a9ed5
Compare
Choose a tag to compare

New features and enhancements

v17.1.1

19 Nov 02:13
Compare
Choose a tag to compare

Bug Fixes

Special Thanks

🥇 Thanks to @NateRadebaugh for his contribution.

v17.1.0

13 Nov 03:17
Compare
Choose a tag to compare

New features and enhancements

Bug Fixes

Special Thanks

🥇 Thanks to @robertIsaac for his contribution to add support for standalone components.

v17.0.0

11 Nov 03:31
Compare
Choose a tag to compare

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 the baseUrl option has been removed from marked, use https://www.npmjs.com/package/marked-base-url instead
  • MarkdownService.parse() method now returns Promise<string> instead of string, because marked parsing is doing so
  • MarkdownPipe now returns Promise<string> instead of string and will need to be combined with async pipe to work correctly
  • Both markedOptions and clipboardOptions configuration properties used in the MarkdownModule.forRoot(config: MarkdownModuleConfig) method now require to be provided with the MARKED_OPTIONS and CLIPBOARD_OPTIONS injection token.
  • The @types/marked dependency is no longer needed and needs to be removed

Additional information

  • Including marked.min.js file in the scripts section of the angular.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

07 May 18:38
Compare
Choose a tag to compare

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

13 Mar 02:02
Compare
Choose a tag to compare

Bug Fixes

Special Thanks

🥇 Thanks to @json-derulo for his contribution.