From b42760abab4635678776dbbe0af2e8f02ae8b6d0 Mon Sep 17 00:00:00 2001 From: koehr Date: Wed, 26 Feb 2020 22:12:06 +0100 Subject: [PATCH] add js, jsx and html aliases for highlightjs --- templates/include/post-render.tmpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/include/post-render.tmpl b/templates/include/post-render.tmpl index 8d7a816..0f6a289 100644 --- a/templates/include/post-render.tmpl +++ b/templates/include/post-render.tmpl @@ -20,9 +20,12 @@ "hh" : "cpp", "hxx" : "cpp", "cxx" : "cpp", - "sh" : "bash" + "sh" : "bash", + "js" : "javascript", + "jsx" : "javascript", + "html" : "xml" }; - + // Given a set of nodes, run highlighting on them function highlight(nodes) { for (i=0; i < nodes.length; i++) {