Releases: jfcere/ngx-markdown
v6.0.0
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 ofHttpClient
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 yourpackage.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
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
v1.5.1
v1.5.0
New features and enhancements
- Make
Prism.js
optional - Add
marked
options configuration throughMarkdownModule.forRoot()
- Add
MarkdownPipe
implementation - Expose
renderer
inMarkdownService
- Expose
options
inMarkdownService
- 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
v1.4.0
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
toMarkdownModule
- 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
v1.3.1
v1.3.0
Enhancement
The library is now distributed in plain Javascript with definitelytyped files instead of TypeScript (also includes UMD bundle files).
Breaking changes
Library marked is no longer automatically imported which means you will need to add marked.js
file manually to you application.