Skip to content

Commit

Permalink
Updated highlight.js to 11.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Oct 17, 2021
1 parent f7e650c commit 9198e4c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ hljs-loader is a small (3 KB) script that can be added to any webpage to automat
Add this anywhere to your HTML page:

```html
<script async src="https://cdn.jsdelivr.net/gh/s9e/[email protected].25/loader.min.js"
<script async src="https://cdn.jsdelivr.net/gh/s9e/[email protected].26/loader.min.js"
crossorigin="anonymous"
integrity="sha384-ELWrOdzAF0oXpFsrMh9yq1VJ9Z4spcYNA9H4p2qk7ZI5UOyHdYZQ/GoNmu9rqJne"></script>
integrity="sha384-UqKMmTNnpepl2w7th+Hp9gMz3sRB/ferD+cvE3aN414s3G6oDsTKZJlGWLjLZBNX"></script>
```


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

```html
<script async src="https://cdn.jsdelivr.net/gh/s9e/[email protected].25/loader.min.js"
<script async src="https://cdn.jsdelivr.net/gh/s9e/[email protected].26/loader.min.js"
crossorigin="anonymous"
data-hljs-observe="body"
data-hljs-options='{"classPrefix":""}'
data-hljs-style="github"
data-hljs-url="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/"
integrity="sha384-ELWrOdzAF0oXpFsrMh9yq1VJ9Z4spcYNA9H4p2qk7ZI5UOyHdYZQ/GoNmu9rqJne"></script>
data-hljs-url="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.3.1/build/"
integrity="sha384-UqKMmTNnpepl2w7th+Hp9gMz3sRB/ferD+cvE3aN414s3G6oDsTKZJlGWLjLZBNX"></script>
```

<dl>
Expand Down
2 changes: 1 addition & 1 deletion ext/highlight.js
Submodule highlight.js updated 340 files
4 changes: 2 additions & 2 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
function generateAliasMap()
{
let aliases = '1c abnf accesslog actionscript,as ada angelscript,asc apache,apacheconf applescript,osascript arcade arduino armasm,arm asciidoc,adoc aspectj autohotkey,ahk autoit avrasm awk axapta,x++ basic bnf brainfuck,bf cal capnproto,capnp ceylon clean,dcl,icl clojure,clj,edn clojure-repl cmake coffeescript,coffee,cson,iced coq cos,cls crmsh,crm,pcmk crystal,cr csp d dart delphi,dfm,dpr,pas,pascal django,jinja dns,bind,zone dockerfile,docker dos,bat,cmd dsconfig dts dust,dst ebnf elixir,ex,exs elm erb erlang,erl erlang-repl excel,xls,xlsx fix flix fortran,f90,f95 fsharp,fs gams,gms gauss,gss gcode,nc gherkin,feature glsl gml golo gradle groovy haml handlebars,hbs,htmlbars haskell,hs haxe,hx hsp http,https hy,hylang inform7,i7 irpf90 isbl jboss-cli,wildfly-cli julia julia-repl,jldoctest kotlin,kt,kts lasso,lassoscript,ls latex,tex ldif leaf lisp livecodeserver livescript,ls llvm lsl mathematica,mma,wl matlab maxima mel mercury,m,moo mipsasm,mips mizar mojolicious monkey moonscript,moon n1ql nestedtext,nt nginx,nginxconf nim nix,nixos node-repl nsis ocaml,ml openscad,scad oxygene parser3 pf pgsql,postgres,postgresql pony powershell,ps,ps1,pwsh processing,pde profile prolog properties protobuf puppet,pp purebasic,pb,pbi q,k,kdb qml,qt reasonml,re rib roboconf,graph,instances routeros,mikrotik rsl ruleslanguage sas scala scheme scilab,sci smali smalltalk,st sml,ml sqf sql stan,stanfuncs stata,ado,do step21,p21,step,stp stylus,styl subunit taggerscript tap tcl,tk thrift tp twig,craftcms vala vbscript,vbs vbscript-html verilog,sv,svh,v vhdl vim wasm wren x86asm xl,tao xquery,xpath,xq zephir,zep'.split(' '),
let aliases = '1c abnf accesslog actionscript,as ada angelscript,asc apache,apacheconf applescript,osascript arcade arduino armasm,arm asciidoc,adoc aspectj autohotkey,ahk autoit avrasm awk axapta,x++ basic bnf brainfuck,bf cal capnproto,capnp ceylon clean,dcl,icl clojure,clj,edn clojure-repl cmake coffeescript,coffee,cson,iced coq cos,cls crmsh,crm,pcmk crystal,cr csp d dart delphi,dfm,dpr,pas,pascal django,jinja dns,bind,zone dockerfile,docker dos,bat,cmd dsconfig dts dust,dst ebnf elixir,ex,exs elm erb erlang,erl erlang-repl excel,xls,xlsx fix flix fortran,f90,f95 fsharp,f#,fs gams,gms gauss,gss gcode,nc gherkin,feature glsl gml golo gradle groovy haml handlebars,hbs,htmlbars haskell,hs haxe,hx hsp http,https hy,hylang inform7,i7 irpf90 isbl jboss-cli,wildfly-cli julia julia-repl,jldoctest kotlin,kt,kts lasso,lassoscript,ls latex,tex ldif leaf lisp livecodeserver livescript,ls llvm lsl mathematica,mma,wl matlab maxima mel mercury,m,moo mipsasm,mips mizar mojolicious monkey moonscript,moon n1ql nestedtext,nt nginx,nginxconf nim nix,nixos node-repl nsis ocaml,ml openscad,scad oxygene parser3 pf pgsql,postgres,postgresql pony powershell,ps,ps1,pwsh processing,pde profile prolog properties protobuf puppet,pp purebasic,pb,pbi q,k,kdb qml,qt reasonml,re rib roboconf,graph,instances routeros,mikrotik rsl ruleslanguage sas scala scheme scilab,sci smali smalltalk,st sml,ml sqf sql stan,stanfuncs stata,ado,do step21,p21,step,stp stylus,styl subunit taggerscript tap tcl,tk thrift tp twig,craftcms vala vbscript,vbs vbscript-html verilog,sv,svh,v vhdl vim wasm wren x86asm xl,tao xquery,xpath,xq zephir,zep'.split(' '),
i = aliases.length,
map = {};
while (--i >= 0)
Expand Down Expand Up @@ -231,7 +231,7 @@
options = config['hljsOptions'],
skip = {'':1},
style = config['hljsStyle'] || 'default',
url = config['hljsUrl'] || 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/';
url = config['hljsUrl'] || 'https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.3.1/build/';

// Prepare to highlight all code blocks as soon as possible
if (document.readyState === 'complete')
Expand Down
4 changes: 2 additions & 2 deletions loader.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9198e4c

Please sign in to comment.