Ngx Markdown Versions Save

Angular markdown component/directive/pipe/service to parse static, dynamic or remote content to HTML with syntax highlight and more...

v17.2.1

3 weeks ago

Bug Fixes

  • Fix clipboard button when used with katex directive (#515) (73dc926) @jfcere
  • Fix clipboard uses with Prism coy theme (#516) (3f0172b) @jfcere

v17.2.0

1 month ago

New features and enhancements

  • Add support for marked >= 9.0.0 < 13.0.0 (#512) (07a9ed5) @jfcere

v17.1.1

5 months ago

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

6 months ago

New features and enhancements

  • Add support for standalone component (#484) (e1245d4) @robertIsaac, @jfcere

Bug Fixes

  • Fix custom renderer is overridden when using MarkdownPipe (#485) (8e621ca) @jfcere

Special Thanks

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

v17.0.0

6 months ago

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

  • Update to angular 17 (#480) (53648ca) @json-derulo, @jfcere
  • Update marked lib to 9.0.0 (#474) (#479) (3a68d38) @robertIsaac, @jfcere
  • Update emoji-toolkit lib to 8.0.0 (#478) (d5a7e3e) @jfcere
  • Update mermaid.js lib to 10.6.0 (#475) (4130a9e) @sarfudheen, @jfcere

v16.0.0

1 year ago

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

  • Update Angular 16 (#454) (37f67d2) @jfcere

v15.1.2

1 year ago

Bug Fixes

  • Allow support for zone.js v13.0.0 (#443) (ad87be3) @json-derulo

Special Thanks

🥇 Thanks to @json-derulo for his contribution.

v15.1.1

1 year ago

Bug fixes

  • Fix SSR markdown parsing (#438) (35dddb4) @jfcere
  • Fix data and src input properties type to match async pipe output (#439) (7f28a1b) @jfcere

v15.1.0

1 year ago

New features and enhancements

  • Add disableSanitizer: boolean option as an input property to MarkdownComponent and as a parameter to MarkdownPipe, allowing to bypass the DOM sanitizer (default is false) (#430) (434b9c1) @paviad @jfcere
  • Add srcRelativeLink: boolean input property to MarkdownComponent to support relative links for remotely loaded markdown (default is false) (#431) (1dd4951) @datumgeek @jfcere

Special Thanks

🥇 Thanks to paviad for his contribution to adding the disableSanitizer option. 🥇 Thanks to datumgeek for his contribution to adding the srcRelativeLink option.

v15.0.0

1 year ago

Update Angular 15

Library has been updated to support Angular 15.

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

⚠ Breaking Changes

The library dependencies have been removed and set as peer/optional dependencies instead to avoid having unused packages installed locally and avoid conflicts for projects that already use any of those dependencies.

Once you have updated ngx-markdown you will need to manually install your required peer/optional dependencies following the updated installation section of the README.md.

New features and enhancements

  • Update to Angular 15
  • Move dependencies to optionalDependencies for plugin integrations
  • Update emoji-toolkit optional dependencies to v7.0.0 which support Unicode 14.

Commits

  • Move lib dependencies to peerDependencies (#416) @jfcere
  • Update Angular 15 (#423) @jfcere
  • Update Emoji-Toolkit to v7.0.0 (#424) @jfcere