mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
chore(lib): update katex 0.15.6 -> 0.16.0
This commit is contained in:
parent
9add317506
commit
4d1f33c66c
7 changed files with 10 additions and 14 deletions
|
@ -30,13 +30,12 @@ libFiles:
|
||||||
sharerJS: sharer.js@0.5.1/sharer.min.js
|
sharerJS: sharer.js@0.5.1/sharer.min.js
|
||||||
# typeit@8.5.4 https://github.com/alexmacarthur/typeit
|
# typeit@8.5.4 https://github.com/alexmacarthur/typeit
|
||||||
typeitJS: typeit@8.5.4/dist/index.umd.js
|
typeitJS: typeit@8.5.4/dist/index.umd.js
|
||||||
# katex@0.15.6 https://katex.org/
|
# katex@0.16.0 https://katex.org/
|
||||||
katexCSS: katex@0.15.6/dist/katex.min.css
|
katexCSS: katex@0.16.0/dist/katex.min.css
|
||||||
katexJS: katex@0.15.6/dist/katex.min.js
|
katexJS: katex@0.16.0/dist/katex.min.js
|
||||||
katexAutoRenderJS: katex@0.15.6/dist/contrib/auto-render.min.js
|
katexAutoRenderJS: katex@0.16.0/dist/contrib/auto-render.min.js
|
||||||
katexCopyTexCSS: katex@0.15.6/dist/contrib/copy-tex.min.css
|
katexCopyTexJS: katex@0.16.0/dist/contrib/copy-tex.min.js
|
||||||
katexCopyTexJS: katex@0.15.6/dist/contrib/copy-tex.min.js
|
katexMhchemJS: katex@0.16.0/dist/contrib/mhchem.min.js
|
||||||
katexMhchemJS: katex@0.15.6/dist/contrib/mhchem.min.js
|
|
||||||
# mermaid@9.1.1https://github.com/mermaid-js/mermaid
|
# mermaid@9.1.1https://github.com/mermaid-js/mermaid
|
||||||
mermaidJS: mermaid@9.1.1/dist/mermaid.min.js
|
mermaidJS: mermaid@9.1.1/dist/mermaid.min.js
|
||||||
# echarts@5.3.2 https://echarts.apache.org/
|
# echarts@5.3.2 https://echarts.apache.org/
|
||||||
|
|
|
@ -13,7 +13,7 @@ lightgallery@2.4.0 https://github.com/sachinchoolur/lightgallery
|
||||||
clipboard.js@2.0.11 https://github.com/zenorocha/clipboard.js
|
clipboard.js@2.0.11 https://github.com/zenorocha/clipboard.js
|
||||||
sharer.js@0.5.1 https://github.com/ellisonleao/sharer.js
|
sharer.js@0.5.1 https://github.com/ellisonleao/sharer.js
|
||||||
typeit@8.5.4 https://github.com/alexmacarthur/typeit
|
typeit@8.5.4 https://github.com/alexmacarthur/typeit
|
||||||
katex@0.15.6 https://katex.org/
|
katex@0.16.0 https://katex.org/
|
||||||
mermaid@9.1.1 https://github.com/mermaid-js/mermaid
|
mermaid@9.1.1 https://github.com/mermaid-js/mermaid
|
||||||
echarts@5.3.2 https://echarts.apache.org/
|
echarts@5.3.2 https://echarts.apache.org/
|
||||||
mapbox-gl@2.8.2 https://github.com/mapbox/mapbox-gl-js
|
mapbox-gl@2.8.2 https://github.com/mapbox/mapbox-gl-js
|
||||||
|
|
1
assets/lib/katex/contrib/copy-tex.min.css
vendored
1
assets/lib/katex/contrib/copy-tex.min.css
vendored
|
@ -1 +0,0 @@
|
||||||
.katex,.katex-display{-webkit-user-select:all;-moz-user-select:all;user-select:all}
|
|
2
assets/lib/katex/contrib/copy-tex.min.js
vendored
2
assets/lib/katex/contrib/copy-tex.min.js
vendored
|
@ -1 +1 @@
|
||||||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var l in n)("object"==typeof exports?exports:e)[l]=n[l]}}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={},t={inline:["$","$"],display:["$$","$$"]},n=function(e,n){void 0===n&&(n=t);for(var l=e.querySelectorAll(".katex-mathml + .katex-html"),r=0;r<l.length;r++){var i=l[r];i.remove?i.remove(null):i.parentNode.removeChild(i)}for(var o=e.querySelectorAll(".katex-mathml"),a=0;a<o.length;a++){var d=o[a],f=d.querySelector("annotation");f&&(d.replaceWith?d.replaceWith(f):d.parentNode.replaceChild(f,d),f.innerHTML=n.inline[0]+f.innerHTML+n.inline[1])}for(var c=e.querySelectorAll(".katex-display annotation"),s=0;s<c.length;s++){var p=c[s];p.innerHTML=n.display[0]+p.innerHTML.substr(n.inline[0].length,p.innerHTML.length-n.inline[0].length-n.inline[1].length)+n.display[1]}return e};return document.addEventListener("copy",(function(e){var t=window.getSelection();if(!t.isCollapsed){var l=t.getRangeAt(0).cloneContents();if(l.querySelector(".katex-mathml")){for(var r=[],i=0;i<l.childNodes.length;i++)r.push(l.childNodes[i].outerHTML);e.clipboardData.setData("text/html",r.join("")),e.clipboardData.setData("text/plain",n(l).textContent),e.preventDefault()}}})),e=e.default}()}));
|
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={},t={inline:["$","$"],display:["$$","$$"]};var n=function(e,n){void 0===n&&(n=t);for(var r=e.querySelectorAll(".katex-mathml + .katex-html"),a=0;a<r.length;a++){var o=r[a];o.remove?o.remove():o.parentNode&&o.parentNode.removeChild(o)}for(var i=e.querySelectorAll(".katex-mathml"),l=0;l<i.length;l++){var f=i[l],c=f.querySelector("annotation");c&&(f.replaceWith?f.replaceWith(c):f.parentNode&&f.parentNode.replaceChild(c,f),c.innerHTML=n.inline[0]+c.innerHTML+n.inline[1])}for(var d=e.querySelectorAll(".katex-display annotation"),s=0;s<d.length;s++){var p=d[s];p.innerHTML=n.display[0]+p.innerHTML.substr(n.inline[0].length,p.innerHTML.length-n.inline[0].length-n.inline[1].length)+n.display[1]}return e};function r(e){var t=e instanceof Element?e:e.parentElement;return t&&t.closest(".katex")}return document.addEventListener("copy",(function(e){var t=window.getSelection();if(!t.isCollapsed&&e.clipboardData){var a=e.clipboardData,o=t.getRangeAt(0),i=r(o.startContainer);i&&o.setStartBefore(i);var l=r(o.endContainer);l&&o.setEndAfter(l);var f=o.cloneContents();if(f.querySelector(".katex-mathml")){var c=Array.prototype.map.call(f.childNodes,(function(e){return e instanceof Text?e.textContent:e.outerHTML})).join("");a.setData("text/html",c),a.setData("text/plain",n(f).textContent),e.preventDefault()}}})),e=e.default}()}));
|
2
assets/lib/katex/katex.min.css
vendored
2
assets/lib/katex/katex.min.css
vendored
File diff suppressed because one or more lines are too long
2
assets/lib/katex/katex.min.js
vendored
2
assets/lib/katex/katex.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -93,8 +93,6 @@
|
||||||
{{- $source := $cdn.katexAutoRenderJS | default "lib/katex/contrib/auto-render.min.js" -}}
|
{{- $source := $cdn.katexAutoRenderJS | default "lib/katex/contrib/auto-render.min.js" -}}
|
||||||
{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}}
|
{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}}
|
||||||
{{- if $math.copyTex -}}
|
{{- if $math.copyTex -}}
|
||||||
{{- $source := $cdn.katexCopyTexCSS | default "lib/katex/contrib/copy-tex.min.css" -}}
|
|
||||||
{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/style.html" -}}
|
|
||||||
{{- $source := $cdn.katexCopyTexJS | default "lib/katex/contrib/copy-tex.min.js" -}}
|
{{- $source := $cdn.katexCopyTexJS | default "lib/katex/contrib/copy-tex.min.js" -}}
|
||||||
{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}}
|
{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue