You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2021/11/19 14:30:19 UTC

[camel-website] branch main updated: chore: don't use deprecated API from higlight.js

This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 5a51cb4  chore: don't use deprecated API from higlight.js
5a51cb4 is described below

commit 5a51cb48a33422abc9dca30e472bd3c805a37832
Author: Zoran Regvart <zo...@regvart.com>
AuthorDate: Fri Nov 19 13:23:24 2021 +0100

    chore: don't use deprecated API from higlight.js
    
    Fixes #682
---
 antora-ui-camel/src/js/vendor/highlight.bundle.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/antora-ui-camel/src/js/vendor/highlight.bundle.js b/antora-ui-camel/src/js/vendor/highlight.bundle.js
index 55f3b8c..4b53798 100644
--- a/antora-ui-camel/src/js/vendor/highlight.bundle.js
+++ b/antora-ui-camel/src/js/vendor/highlight.bundle.js
@@ -9,5 +9,5 @@
   hljs.registerLanguage('sql', require('highlight.js/lib/languages/sql'))
   hljs.registerLanguage('xml', require('highlight.js/lib/languages/xml'))
   hljs.registerLanguage('yaml', require('highlight.js/lib/languages/yaml'))
-  hljs.initHighlightingOnLoad()
+  hljs.highlightAll()
 })()