@codingame/monaco-vscode-markdown-math-default-extension 34.1.1 → 35.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -4
- package/package.json +2 -2
- package/resources/extension.js +1 -1
- package/resources/extension.js.map +1 -1
- package/resources/katex.js +6 -6
package/index.js
CHANGED
|
@@ -4,8 +4,8 @@ var manifest = {name:"markdown-math",displayName:"%displayName%",description:"%d
|
|
|
4
4
|
|
|
5
5
|
const { registerFileUrl, whenReady } = registerExtension(manifest, undefined, {"system":true,"readmePath":"README.md"});
|
|
6
6
|
registerFileUrl('README.md', new URL('./resources/README.md', import.meta.url).toString(), {"mimeType":"text/markdown","size":246});
|
|
7
|
-
registerFileUrl('dist/browser/extension', new URL('./resources/extension.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":
|
|
8
|
-
registerFileUrl('dist/browser/extension.js', new URL('./resources/extension.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":
|
|
7
|
+
registerFileUrl('dist/browser/extension', new URL('./resources/extension.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":279654});
|
|
8
|
+
registerFileUrl('dist/browser/extension.js', new URL('./resources/extension.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":279654});
|
|
9
9
|
registerFileUrl('dist/browser/extension.js.map', new URL('./resources/extension.js.map', import.meta.url).toString(), {"mimeType":"application/json","size":1037127});
|
|
10
10
|
registerFileUrl('icon.png', new URL('./resources/icon.png', import.meta.url).toString(), {"mimeType":"image/png","size":903});
|
|
11
11
|
registerFileUrl('notebook-out/fonts/KaTeX_AMS-Regular.woff2', new URL('./resources/KaTeX_AMS-Regular.woff2', import.meta.url).toString(), {"mimeType":"font/woff2","size":28076});
|
|
@@ -28,8 +28,8 @@ registerFileUrl('notebook-out/fonts/KaTeX_Size2-Regular.woff2', new URL('./resou
|
|
|
28
28
|
registerFileUrl('notebook-out/fonts/KaTeX_Size3-Regular.woff2', new URL('./resources/KaTeX_Size3-Regular.woff2', import.meta.url).toString(), {"mimeType":"font/woff2","size":3624});
|
|
29
29
|
registerFileUrl('notebook-out/fonts/KaTeX_Size4-Regular.woff2', new URL('./resources/KaTeX_Size4-Regular.woff2', import.meta.url).toString(), {"mimeType":"font/woff2","size":4928});
|
|
30
30
|
registerFileUrl('notebook-out/fonts/KaTeX_Typewriter-Regular.woff2', new URL('./resources/KaTeX_Typewriter-Regular.woff2', import.meta.url).toString(), {"mimeType":"font/woff2","size":13568});
|
|
31
|
-
registerFileUrl('notebook-out/katex', new URL('./resources/katex.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":
|
|
32
|
-
registerFileUrl('notebook-out/katex.js', new URL('./resources/katex.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":
|
|
31
|
+
registerFileUrl('notebook-out/katex', new URL('./resources/katex.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":279140});
|
|
32
|
+
registerFileUrl('notebook-out/katex.js', new URL('./resources/katex.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":279140});
|
|
33
33
|
registerFileUrl('notebook-out/katex.min.css', new URL('./resources/katex.min.css.txt', import.meta.url).toString(), {"mimeType":"text/css","size":23352});
|
|
34
34
|
registerFileUrl('package.json', new URL('./resources/package.json', import.meta.url).toString(), {"mimeType":"application/json","size":1993});
|
|
35
35
|
registerFileUrl('package.nls.json', new URL('./resources/package.nls.json', import.meta.url).toString(), {"mimeType":"application/json","size":363});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-markdown-math-default-extension",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "35.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@codingame/monaco-vscode-api": "
|
|
21
|
+
"@codingame/monaco-vscode-api": "35.0.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/resources/extension.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var J1=Object.create;var Ve=Object.defineProperty;var Q1=Object.getOwnPropertyDescriptor;var es=Object.getOwnPropertyNames;var ts=Object.getPrototypeOf,rs=Object.prototype.hasOwnProperty;var ns=(w,A)=>()=>(w&&(A=w(w=0)),A);var sn=(w,A)=>()=>
|
|
1
|
+
"use strict";var J1=Object.create;var Ve=Object.defineProperty;var Q1=Object.getOwnPropertyDescriptor;var es=Object.getOwnPropertyNames;var ts=Object.getPrototypeOf,rs=Object.prototype.hasOwnProperty;var ns=(w,A,I)=>()=>{if(I)throw I[0];try{return w&&(A=w(w=0)),A}catch(v){throw I=[v],v}};var sn=(w,A)=>()=>{try{return A||w((A={exports:{}}).exports,A),A.exports}catch(I){throw A=0,I}},ss=(w,A)=>{for(var I in A)Ve(w,I,{get:A[I],enumerable:!0})},an=(w,A,I,v)=>{if(A&&typeof A=="object"||typeof A=="function")for(let L of es(A))!rs.call(w,L)&&L!==I&&Ve(w,L,{get:()=>A[L],enumerable:!(v=Q1(A,L))||v.enumerable});return w};var is=(w,A,I)=>(I=w!=null?J1(ts(w)):{},an(A||!w||!w.__esModule?Ve(I,"default",{value:w,enumerable:!0}):I,w)),as=w=>an(Ve({},"__esModule",{value:!0}),w);var ee=ns(()=>{});var on=sn((ye,Nt)=>{"use strict";ee();(function(A,I){typeof ye=="object"&&typeof Nt=="object"?Nt.exports=I():typeof define=="function"&&define.amd?define([],I):typeof ye=="object"?ye.katex=I():A.katex=I()})(typeof self<"u"?self:ye,function(){return(function(){"use strict";var w={};(function(){w.d=function(t,e){for(var r in e)w.o(e,r)&&!w.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}})(),(function(){w.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}})();var A={};w.d(A,{default:function(){return j1}});class I{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let n="KaTeX parse error: "+e,s,a,o=r&&r.loc;if(o&&o.start<=o.end){let m=o.lexer.input;s=o.start,a=o.end,s===m.length?n+=" at end of input: ":n+=" at position "+(s+1)+": ";let p=m.slice(s,a).replace(/[^]/g,"$&\u0332"),b;s>15?b="\u2026"+m.slice(s-15,s):b=m.slice(0,s);let y;a+15<m.length?y=m.slice(a,a+15)+"\u2026":y=m.slice(a),n+=b+p+y}let u=new Error(n);return u.name="ParseError",u.__proto__=I.prototype,u.position=s,s!=null&&a!=null&&(u.length=a-s),u.rawMessage=e,u}}I.prototype.__proto__=Error.prototype;var v=I;let L=function(t,e){return t.indexOf(e)!==-1},R=function(t,e){return t===void 0?e:t},F=/([A-Z])/g,e0=function(t){return t.replace(F,"-$1").toLowerCase()},p0={"&":"&",">":">","<":"<",'"':""","'":"'"},X=/[&><"']/g;function J(t){return String(t).replace(X,e=>p0[e])}let h0=function(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?h0(t.body[0]):t:t.type==="font"?h0(t.body):t},f0=function(t){let e=h0(t);return e.type==="mathord"||e.type==="textord"||e.type==="atom"},j=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t};var B={contains:L,deflt:R,escape:J,hyphenate:e0,getBaseElem:h0,isCharacterBox:f0,protocolFromUrl:function(t){let e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"}};let g0={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function ce(t){if(t.default)return t.default;let e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ue{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(let r in g0)if(g0.hasOwnProperty(r)){let n=g0[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:ce(n)}}reportNonstrict(e,r,n){let s=this.strict;if(typeof s=="function"&&(s=s(e,r,n)),!(!s||s==="ignore")){if(s===!0||s==="error")throw new v("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);s==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){let s=this.strict;if(typeof s=="function")try{s=s(e,r,n)}catch{s="error"}return!s||s==="ignore"?!1:s===!0||s==="error"?!0:s==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){let n=B.protocolFromUrl(e.url);if(n==null)return!1;e.protocol=n}return!!(typeof this.trust=="function"?this.trust(e):this.trust)}}class q0{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return I0[pn[this.id]]}sub(){return I0[gn[this.id]]}fracNum(){return I0[bn[this.id]]}fracDen(){return I0[yn[this.id]]}cramp(){return I0[xn[this.id]]}text(){return I0[wn[this.id]]}isTight(){return this.size>=2}}let te=0,we=1,re=2,F0=3,he=4,z0=5,ne=6,b0=7,I0=[new q0(te,0,!1),new q0(we,0,!0),new q0(re,1,!1),new q0(F0,1,!0),new q0(he,2,!1),new q0(z0,2,!0),new q0(ne,3,!1),new q0(b0,3,!0)],pn=[he,z0,he,z0,ne,b0,ne,b0],gn=[z0,z0,z0,z0,b0,b0,b0,b0],bn=[re,F0,he,z0,ne,b0,ne,b0],yn=[F0,F0,z0,z0,b0,b0,b0,b0],xn=[we,we,F0,F0,z0,z0,b0,b0],wn=[te,we,re,F0,re,F0,re,F0];var E={DISPLAY:I0[te],TEXT:I0[re],SCRIPT:I0[he],SCRIPTSCRIPT:I0[ne]};let $e=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function kn(t){for(let e=0;e<$e.length;e++){let r=$e[e];for(let n=0;n<r.blocks.length;n++){let s=r.blocks[n];if(t>=s[0]&&t<=s[1])return r.name}}return null}let ke=[];$e.forEach(t=>t.blocks.forEach(e=>ke.push(...e)));function Dt(t){for(let e=0;e<ke.length;e+=2)if(t>=ke[e]&&t<=ke[e+1])return!0;return!1}let se=80,vn=function(t,e){return"M95,"+(622+t+e)+`
|
|
2
2
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
3
3
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
4
4
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|