Skip to content

Releases: MurhafSousli/ngx-highlightjs

v11.0.1

29 May 00:44
2a86050
Compare
Choose a tag to compare

What's Changed

Full Changelog: v11.0.0...v11.0.1

v11.0.0

25 May 21:00
a10b312
Compare
Choose a tag to compare

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 and singleLine inputs to lineNumbers 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 to highlightAuto.
  • 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

28 Mar 04:04
f17271e
Compare
Choose a tag to compare
v11.0.0-beta.1 Pre-release
Pre-release
Merge pull request #279 from MurhafSousli/new

v11.0.0 beta

v10.0.0

25 Jun 05:33
7bd9f25
Compare
Choose a tag to compare

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 have provideHttpClient() provided in your main.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

21 May 14:48
3e8f924
Compare
Choose a tag to compare

What's Changed

Full Changelog: v8.0.0...v9.0.0

v8.0.0

31 Jan 03:32
8e0ea28
Compare
Choose a tag to compare

What's Changed

  • Update to Angular 15.
  • Fix setTheme does not load theme if themePath was not specified in the configuration, closes #247 in 4a74d84.
  • Fix Angular Universal error, closes 243 in 8815a9e.
  • Make Angular Universal happy with setTheme function HighlightLoader service, in 0ed6508.
  • Make gist setter public, closes #242 in 3208b0d.

Full Changelog: v7.0.1...v8.0.0

v7.0.1

28 Jul 00:18
5391c62
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v7.0.0...v7.0.1

v7.0.0

04 Jun 14:53
4545c39
Compare
Choose a tag to compare
  • Update to Angular 14

v6.1.3

04 Jun 14:52
7b6c63d
Compare
Choose a tag to compare
  • fix typo: Angular async pipe return type is 'string|null' not 'string' as [highlight] expect, closes #209 in 277322f.

v6.1.2

13 Mar 00:26
c1229aa
Compare
Choose a tag to compare
  • fix: check if options is defined in HighlightLoader service, closes #219 in cac55cb.
  • fix: Update deprecated usage of throwError in rxjs 7, in cac55cb.