Skip to content

Commit 7bc395a

Browse files
committed
Updated highlight.js to 11.8.0
1 parent d387397 commit 7bc395a

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ hljs-loader is a small (3 KB) script that can be added to any webpage to automat
66
Add this anywhere to your HTML page:
77

88
```html
9-
<script defer src="https://cdn.jsdelivr.net/gh/s9e/[email protected].32/loader.min.js"
9+
<script defer src="https://cdn.jsdelivr.net/gh/s9e/[email protected].33/loader.min.js"
1010
crossorigin="anonymous"
11-
integrity="sha384-ryUuFF+lg0ZHUA7DaXhvSekelOyHvqE2+5VtldjgFG+Y99aBpL8SNXEPubG6UTNv"></script>
11+
integrity="sha384-fSWmbgQwbzLXpKFwOj6DlXOstUp9/gRcSSNLI50wWQYg7XIihuBcYUTG/GR7ocjz"></script>
1212
```
1313

1414

@@ -17,13 +17,13 @@ Add this anywhere to your HTML page:
1717
No configuration is required but a number of options are available and can be set on the `script` element that loads this script.
1818

1919
```html
20-
<script defer src="https://cdn.jsdelivr.net/gh/s9e/[email protected].32/loader.min.js"
20+
<script defer src="https://cdn.jsdelivr.net/gh/s9e/[email protected].33/loader.min.js"
2121
crossorigin="anonymous"
2222
data-hljs-observe="body"
2323
data-hljs-options='{"classPrefix":""}'
2424
data-hljs-style="github"
25-
data-hljs-url="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/"
26-
integrity="sha384-ryUuFF+lg0ZHUA7DaXhvSekelOyHvqE2+5VtldjgFG+Y99aBpL8SNXEPubG6UTNv"></script>
25+
data-hljs-url="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8.0/build/"
26+
integrity="sha384-fSWmbgQwbzLXpKFwOj6DlXOstUp9/gRcSSNLI50wWQYg7XIihuBcYUTG/GR7ocjz"></script>
2727
```
2828

2929
<dl>

loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
function generateAliasMap()
1212
{
13-
const packedMap = '1c abnf accesslog actionscript,as ada angelscript,asc apache%conf applescript,osascript arcade arduino arm!asm asciidoc,adoc aspectj autohotkey,ahk autoit avrasm awk axapta,x++ basic bnf brainfuck,bf cal capnp!roto ceylon clean,dcl,icl clojure,clj,edn clojure-repl cmake coffee!script,cson,iced coq cos,cls crm!sh,pcmk cr!ystal csp d dart delphi,dfm,dpr,pas!cal django,jinja dns,bind,zone docker!file dos,bat,cmd dsconfig dts dust,dst ebnf elixir,ex!s elm erb erl!ang erlang-repl excel,xls!x fix flix fortran,f90,f95 fs!harp,f# gams,gms gauss,gss gcode,nc gherkin,feature glsl gml golo gradle graphql,gql groovy haml handlebars,hbs,htmlbars haskell,hs haxe,hx hsp http%s hy%lang inform7,i7 irpf90 isbl jboss-cli,wildfly-cli julia julia-repl,jldoctest kotlin,kt!s lasso%script,ls latex,tex ldif leaf lisp livecodeserver livescript,ls llvm lsl mathematica,mma,wl matlab maxima mel m!ercury,moo mips!asm mizar mojolicious monkey moon!script n1ql nestedtext,nt nginx%conf nim nix%os node-repl nsis ocaml,ml openscad,scad oxygene parser3 pf pgsql,postgres!ql pony powershell,ps!1,pwsh processing,pde profile prolog properties protobuf puppet,pp purebasic,pb!i q,k!db qml,qt re!asonml rib roboconf,graph,instances routeros,mikrotik rsl ruleslanguage sas scala scheme,scm sci!lab smali smalltalk,st sml,ml sqf sql stan%funcs stata,ado,do step!21,p21,stp styl!us subunit taggerscript tap tcl,tk thrift tp twig,craftcms vala vbs!cript vbscript-html v!erilog,sv!h vhdl vim wasm wren x86asm xl,tao xq!uery,xpath zep!hir';
13+
const packedMap = '1c abnf accesslog actionscript,as ada angelscript,asc apache%conf applescript,osascript arcade arduino arm!asm asciidoc,adoc aspectj autohotkey,ahk autoit avrasm awk axapta,x++ basic bnf brainfuck,bf cal capnp!roto ceylon clean,dcl,icl clojure,clj,edn clojure-repl cmake coffee!script,cson,iced coq cos,cls crm!sh,pcmk cr!ystal csp d dart delphi,dfm,dpr,pas!cal django,jinja dns,bind,zone docker!file dos,bat,cmd dsconfig dts dust,dst ebnf elixir,ex!s elm erb erl!ang erlang-repl excel,xls!x fix flix fortran,f90,f95 fs!harp,f# gams,gms gauss,gss gcode,nc gherkin,feature glsl gml golo gradle graphql,gql groovy haml handlebars,hbs,htmlbars haskell,hs haxe,hx hsp http%s hy%lang inform7,i7 irpf90 isbl jboss-cli,wildfly-cli julia julia-repl,jldoctest kotlin,kt!s lasso%script,ls latex,tex ldif leaf lisp livecodeserver livescript,ls llvm lsl mathematica,mma,wl matlab maxima mel m!ercury,moo mips!asm mizar mojolicious monkey moon!script n1ql nestedtext,nt nginx%conf nim nix%os node-repl nsis ocaml,ml openscad,scad oxygene parser3 pf pgsql,postgres!ql pony powershell,ps!1,pwsh processing,pde profile prolog properties proto!buf puppet,pp purebasic,pb!i q,k!db qml,qt re!asonml rib roboconf,graph,instances routeros,mikrotik rsl ruleslanguage sas scala scheme,scm sci!lab smali smalltalk,st sml,ml sqf sql stan%funcs stata,ado,do step!21,p21,stp styl!us subunit taggerscript tap tcl,tk thrift tp twig,craftcms vala vbs!cript vbscript-html v!erilog,sv!h vhdl vim wasm wren x86asm xl,tao xq!uery,xpath zep!hir';
1414

1515
map = {};
1616
for (let str of packedMap.replace(/(\w+)(?:%|!(\w+))/g, '$1$2,$1').split(' '))
@@ -214,7 +214,7 @@
214214
options = config['hljsOptions'],
215215
skip = {'':1},
216216
style = config['hljsStyle'] || 'default',
217-
url = config['hljsUrl'] || 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/';
217+
url = config['hljsUrl'] || 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8.0/build/';
218218

219219
// Prepare to highlight all code blocks as soon as possible
220220
if (document.readyState === 'complete')

loader.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)