discourse/vendor/assets/javascripts/highlightjs
Rafael dos Santos Silva f11b926823
DEV: Add test case for syntax highlight of complex HTML (#18320)
* DEV: Add test case for syntax highlight of complex HTML

The commit 685e0da upgrade HighlightJS to version 11, which deprecates
syntax highlight of complex HTML elements. See https://github.com/highlightjs/highlight.js/issues/2889

This brought a regression of syntax highlighting of GitHub oneboxes,
which was fixed in 09cec7d. This commit adds a test case to prevent
future regressions like this one.

* fix test and warning
2022-09-21 19:09:53 -03:00
..
es DEV: Update highlight.js to version 11 (#18282) 2022-09-20 12:43:28 -03:00
languages DEV: Update highlight.js to version 11 (#18282) 2022-09-20 12:43:28 -03:00
DIGESTS.md DEV: Update highlight.js dependency to 10.6.0 (#12303) 2021-03-10 11:35:00 -05:00
LICENSE DEV: Update MomentJS and highlightJS 2020-11-11 12:34:26 +11:00
README.md FIX: Use the same hljs version in prod and tests (#14913) 2021-11-13 01:45:02 +01:00
highlight-test-bundle.min.js DEV: Add test case for syntax highlight of complex HTML (#18320) 2022-09-21 19:09:53 -03:00
highlight.js DEV: Update highlight.js to version 11 (#18282) 2022-09-20 12:43:28 -03:00
highlight.min.js DEV: Update highlight.js to version 11 (#18282) 2022-09-20 12:43:28 -03:00
package.json DEV: Update highlight.js to version 11 (#18282) 2022-09-20 12:43:28 -03:00

README.md

Highlight.js CDN Assets

install size

This package contains only the CDN build assets of highlight.js.

This may be what you want if you'd like to install the pre-built distributable highlight.js client-side assets via NPM. If you're wanting to use highlight.js mainly on the server-side you likely want the highlight.js package instead.

To access these files via CDN:
https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/

If you just want a single .js file with the common languages built-in: https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/highlight.min.js


Highlight.js

Highlight.js is a syntax highlighter written in JavaScript. It works in the browser as well as on the server. It works with pretty much any markup, doesnt depend on any framework, and has automatic language detection.

If you'd like to read the full README:
https://github.com/highlightjs/highlight.js/blob/main/README.md

License

Highlight.js is released under the BSD License. See LICENSE file for details.

The official site for the library is at https://highlightjs.org/.

The Github project may be found at: https://github.com/highlightjs/highlight.js

Further in-depth documentation for the API and other topics is at http://highlightjs.readthedocs.io/.

A list of the Core Team and contributors can be found in the CONTRIBUTORS.md file.