hljs-compatible?
function. Checks that the version of Highlight.js that is loaded on the page has the
functions expected from a compatible version. This is used by re-frame-10x to display a message that the
correct dependency is missing in place of syntax higlighted source code. A common cause of an incompatible
version being loaded is having a direct project dependency or transitive dependency that depends on a much
older version of Highlight.js, such as 10.5.x instead of 11.5.x."hightlight.js/lib/core"
to fix build performance issues
caused by previously loading all languages. Now only Clojure support is
registered by default. If you are using any other language, you now need to
explicitly require and register it! E.g.
(require ["highlight.js/lib/languages/rust" :as rust])
(re-highlight/register-language "rust" rust)
Initial release.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close