From c6c4f8d4eb2006f4a808aee0b976f263f850bc02 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Sun, 15 Oct 2023 10:38:22 +0900 Subject: [PATCH] Specify languages for highlight.js --- src/assets/js/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/assets/js/app.js b/src/assets/js/app.js index 90c5f5243f..c3e86a3108 100644 --- a/src/assets/js/app.js +++ b/src/assets/js/app.js @@ -4,6 +4,9 @@ $(() => { anchors.add(); // highlight.js + hljs.configure({ + languages: ['ruby', 'html', 'bash'] + }); hljs.highlightAll(); $("#navigation").load(`${config.rootPath}navigation.html`, function() {