Skip to content

Releases: jfcere/ngx-markdown

v6.0.0

28 May 03:19
Compare
Choose a tag to compare

ngx-markdown v6.0.0

  • Version has been bumped to 6.0.0 to be aligned with Angular
  • Repository now uses Angular's library architecture
  • Npm package is now published following the Angular Package Format (APF) specifications and bundled in FESM2015, FESM5, and UMD formats to be consumed by Angular CLI, Webpack, or SystemJS
  • MarkdownModule.forRoot() method can now optionally accept an instance of HttpClient as parameter to avoid conflict with interceptors when using lazy-loaded modules (see issue angular/angular#20575)

Breaking Changes

  • MarkdownModule.forRoot() method parameters have changed
  • Npm package folders structure has changed
  • Prism syntax higlight package is now set as a dependency and no longer requires to be added manualy to your package.json althought it remains optional and do not have to be included into your application if not wanted.

Be sure to follow the README.md for installation if needed.

Commits

v1.6.0

07 May 03:01
Compare
Choose a tag to compare

Update to Angular 6

Repository has been updated to Angular 6 and now uses HttpClient instead of Http service.

Breaking changes

Due to the fact that Angular 6 uses RxJS 6 and that they removed deep imports ngx-markdown is no longer supported for all previous version of Angular. If you are using an older version of Angular you can still use previous versions of the package (<1.6.0).

As of Angular 6, the default value of compile option preserveWhitespaces is now set to false which tells the compiler to remove blank text nodes from compiled templates. This can cause issues when using content projection into markdown component and/or directive. To avoid the issue you can place the ngPreserveWhitespaces directive on the host element (see the Usage documentation in README.md).

Commits

v1.5.2

14 Mar 01:13
Compare
Choose a tag to compare

v1.5.1

22 Feb 05:55
Compare
Choose a tag to compare

v1.5.0

28 Dec 04:00
Compare
Choose a tag to compare

New features and enhancements

  • Make Prism.js optional
  • Add marked options configuration through MarkdownModule.forRoot()
  • Add MarkdownPipe implementation
  • Expose renderer in MarkdownService
  • Expose options in MarkdownService
  • Remove e2e related
  • Update README.md documentation
  • Update marked to v0.3.9 to fix XSS vulnerability issue
  • Update Prism.js to v1.9.0

Commits

v1.4.1

10 Dec 22:10
Compare
Choose a tag to compare

v1.4.0

28 Oct 16:17
Compare
Choose a tag to compare

Repository renamed to ngx-markdown

To be more accurate with Angular versions and with the upcoming v5 release, I have renamed the repository to ngx-markdown.

Breaking changes

Module, component and directive names have been adjusted to follow the new repository name.

  • Module has been renamed from MarkdownToHtmlModule to MarkdownModule
  • Component has been renamed from <markdown-to-html> to <markdown>
  • Directive has been renamed from <div markdown-to-html> to <div markdown>

Although the changes shouldn't be too hard I am still sorry for any inconvenience that the renaming could cause. For more information please follow the readme.md or don't hesitate to open an issue.

Commits

v1.3.2

17 Sep 19:25
Compare
Choose a tag to compare

Bug fixes

v1.3.1

23 Aug 03:16
Compare
Choose a tag to compare

Bug fixes

v1.3.0

23 Aug 05:27
Compare
Choose a tag to compare

Enhancement

The library is now distributed in plain Javascript with definitelytyped files instead of TypeScript (also includes UMD bundle files).

⚠️ Please note that breaking changes are no longer valid in version 1.3.1 Please be sure to be up-to-date to avoid the strikethrough step below.

Breaking changes

Library marked is no longer automatically imported which means you will need to add marked.js file manually to you application.