From f7f6f74729c9604a8a845ca73929822e0066c0ea Mon Sep 17 00:00:00 2001 From: Chris Clark Date: Thu, 14 Dec 2023 09:30:36 -0500 Subject: [PATCH] Update higlightjs --- resources/highlight.min.js | 6 ++++-- scripts/fetch_resources.sh | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/highlight.min.js b/resources/highlight.min.js index aa5f597..5d699ae 100644 --- a/resources/highlight.min.js +++ b/resources/highlight.min.js @@ -3,7 +3,8 @@ (c) 2006-2023 undefined and other contributors License: BSD-3-Clause */ -function e(n){return n instanceof Map?n.clear=n.delete=n.set=()=>{ +var hljs=function(){"use strict";function e(n){ +return n instanceof Map?n.clear=n.delete=n.set=()=>{ throw Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=()=>{ throw Error("set is read-only") }),Object.freeze(n),Object.getOwnPropertyNames(n).forEach((t=>{ @@ -1208,4 +1209,5 @@ begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0 ;return c.pop(),c.push(i),r.contains=c,{name:"YAML",case_insensitive:!0, aliases:["yml"],contains:l}}});const He=ae;for(const e of Object.keys(Ke)){ const n=e.replace("grmr_","").replace("_","-");He.registerLanguage(n,Ke[e])} -export{He as default}; \ No newline at end of file +return He}() +;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs); \ No newline at end of file diff --git a/scripts/fetch_resources.sh b/scripts/fetch_resources.sh index 971d56e..70132bf 100755 --- a/scripts/fetch_resources.sh +++ b/scripts/fetch_resources.sh @@ -34,8 +34,8 @@ done echo "Downloading highlight.min.js from CDN" -curl \ - https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/es/highlight.min.js \ +curl -s \ + https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js \ > resources/highlight.min.js echo "Fetching mermaid js"