Releases: MurhafSousli/ngx-highlightjs
Releases · MurhafSousli/ngx-highlightjs
v12.0.0
v11.0.1
What's Changed
- fix: highlight.js dependency was removed in v11 by @MurhafSousli in #287
Full Changelog: v11.0.0...v11.0.1
v11.0.0
What's Changed
- Update to Angular 17.
- feat: Add
provideHighlightOptions
function to easily override the default options. - feat: Add
provideGistOptions
function in the plus package to easily set gist id and secret into the HTTP requests. - feat: Add
startFrom
andsingleLine
inputs tolineNumbers
directive, closes #274. - feat: Make
codeFromUrl
pipe supports loading of relative URLs, closes #224. - feat: Add
highlight
directive which uses a different function and provide different options, closes #275. - feat: Add
lineNumbersOptions
property to set the default line number options. - refactor: Rename the previous
highlight
directive tohighlightAuto
. - refactor: split line numbers functionality into its own directive.
- refactor: Use
highlight.js
original interfaces. - enhance: Allow loading theme from global options if
highlight.js
was imported externally.
Breaking changes
- The
highlight
directive now uses a different function from highlight.js which requires selecting a language.
v11.0.0-beta.1
Merge pull request #279 from MurhafSousli/new v11.0.0 beta
v10.0.0
What's Changed
- feat: Migrate to Angular standalone components, closes #260 in cadcd11.
- fix: Add line-numbers as a sub package, closes #234 in 7f8f551.
- refactor: Update deprecated rxjs usage.
Breaking changes
- When using
HighlightPlusModule
, you must haveprovideHttpClient()
provided in yourmain.ts
file in order to make the http requests work. - The line numbers plugin is now included within the package, the import path should point to the new sub-package
ngx-highlightjs/line-numbers
providers: [
{
provide: HIGHLIGHT_OPTIONS,
useValue: {
lineNumbersLoader: () => import('ngx-highlightjs/line-numbers')
}
}
]
Full Changelog: v9.0.0...v10.0.0
v9.0.0
v8.0.0
What's Changed
- Update to Angular 15.
- Fix
setTheme
does not load theme ifthemePath
was not specified in the configuration, closes #247 in 4a74d84. - Fix Angular Universal error, closes 243 in 8815a9e.
- Make Angular Universal happy with
setTheme
functionHighlightLoader
service, in 0ed6508. - Make gist setter public, closes #242 in 3208b0d.
Full Changelog: v7.0.1...v8.0.0
v7.0.1
What's Changed
- Add support for trusted types (CSP) by @tomastrajan in #230
New Contributors
- @tomastrajan made their first contribution in #230
Full Changelog: v7.0.0...v7.0.1
v7.0.0
- Update to Angular 14