Ngx Highlightjs Versions Save

Angular syntax highlighting module

v11.0.0-beta.1

1 month ago

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.

v10.0.0

10 months ago

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: https://github.com/MurhafSousli/ngx-highlightjs/compare/v9.0.0...v10.0.0

v9.0.0

11 months ago

v8.0.0

1 year ago

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: https://github.com/MurhafSousli/ngx-highlightjs/compare/v7.0.1...v8.0.0

v7.0.1

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/MurhafSousli/ngx-highlightjs/compare/v7.0.0...v7.0.1

v7.0.0

1 year ago
  • Update to Angular 14

v6.1.3

1 year ago
  • fix typo: Angular async pipe return type is 'string|null' not 'string' as [highlight] expect, closes #209 in 277322f.

v6.1.2

2 years ago
  • fix: check if options is defined in HighlightLoader service, closes #219 in cac55cb.
  • fix: Update deprecated usage of throwError in rxjs 7, in cac55cb.

v6.1.1

2 years ago
  • fix: RxJS peerDependency warning when installing the package, closes #205 in 87c8521.
  • fix: Passing empty string to [highlight] input should clear the highlighted content (test cases is added for that), closes #119 in 2d67fb3.

v6.1.0

2 years ago

Added a dynamic way for loading the highlighting theme, if you have light and dark themes in your app, this release makes it easier to change the highlight theme on the fly