@oscloudlab/knowledge-card 0.0.1 → 0.0.2
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/dist/abap-bNFqRLO1.js +84 -0
- package/dist/abnf-hvXtkKLY.js +87 -0
- package/dist/actionscript-6i80VbAv.js +43 -0
- package/dist/ada-CiSKRw34.js +52 -0
- package/dist/agda-BELchEdZ.js +56 -0
- package/dist/al-DkPZllof.js +56 -0
- package/dist/antlr4-D6U2qvIr.js +96 -0
- package/dist/apacheconf-DoADUQkC.js +80 -0
- package/dist/apex-Dwxgykqz.js +104 -0
- package/dist/apl-n43gQAL3.js +65 -0
- package/dist/applescript-DUNzhl2t.js +50 -0
- package/dist/aql-BNnsomU8.js +82 -0
- package/dist/arduino-Ctiiir5A.js +41 -0
- package/dist/arff-CF3A9Ff-.js +43 -0
- package/dist/asciidoc-BORHAu3L.js +240 -0
- package/dist/asm6502-OhJaS22O.js +62 -0
- package/dist/asmatmel-CG3mJBJs.js +74 -0
- package/dist/aspnet-Bgu9cVxS.js +83 -0
- package/dist/autohotkey-BMzF8w3W.js +64 -0
- package/dist/autoit-BUz7W_A-.js +67 -0
- package/dist/avisynth-D_5DsX9W.js +195 -0
- package/dist/avro-idl-DXBF-8pT.js +74 -0
- package/dist/bash-0-vitIuH.js +223 -0
- package/dist/bash-CmPTK8K6.js +26 -0
- package/dist/basic-CBrKUqQp.js +28 -0
- package/dist/basic-CgjK_kM4.js +26 -0
- package/dist/batch-DDuJqYDJ.js +125 -0
- package/dist/bbcode-BBBJW4h9.js +60 -0
- package/dist/bicep-B7Vet2aR.js +102 -0
- package/dist/birb-DPs12VRI.js +53 -0
- package/dist/bison-BKvEoKEG.js +73 -0
- package/dist/bnf-CaE0Bt3T.js +52 -0
- package/dist/brainfuck-GdsepcND.js +53 -0
- package/dist/brightscript-CaQ-B4pE.js +76 -0
- package/dist/bro-C_rmjGgn.js +60 -0
- package/dist/bsl-DQhyt9j4.js +101 -0
- package/dist/c-D8-laUL_.js +26 -0
- package/dist/c-b2c4WJSm.js +83 -0
- package/dist/cfscript-DcwVkFDX.js +71 -0
- package/dist/chaiscript-C1jdPAs0.js +89 -0
- package/dist/cil-C54xDxMg.js +52 -0
- package/dist/clike-D8ff3B0t.js +61 -0
- package/dist/clojure-BtKUzyKV.js +63 -0
- package/dist/cmake-CcFmEv5M.js +62 -0
- package/dist/cobol-SnYz3b9P.js +82 -0
- package/dist/coffeescript-CKJzYVhc.js +110 -0
- package/dist/concurnas-C6YKMKIG.js +90 -0
- package/dist/coq-AH1nKVcq.js +81 -0
- package/dist/core-CcwoL92f.js +1712 -0
- package/dist/cpp-Bh1PKWEj.js +26 -0
- package/dist/cpp-C0j-5811.js +115 -0
- package/dist/crystal-ByWjq0Om.js +87 -0
- package/dist/csharp-BmDeN1AH.js +388 -0
- package/dist/csharp-C-RIlwgF.js +26 -0
- package/dist/cshtml-BX2903vs.js +134 -0
- package/dist/csp-BKqyZN9w.js +90 -0
- package/dist/css-9KZNpeR_.js +90 -0
- package/dist/css-extras-DWWoGQa1.js +139 -0
- package/dist/csv-6jawsFvm.js +37 -0
- package/dist/cypher-GT5Ln_K4.js +65 -0
- package/dist/d-DQuNeOB7.js +109 -0
- package/dist/dart-CHER8X1l.js +101 -0
- package/dist/dataweave-DL_Y2LqP.js +73 -0
- package/dist/dax-D27J9qU6.js +60 -0
- package/dist/dhall-C-Dtjrdj.js +95 -0
- package/dist/diff-Dg1kV9wC.js +78 -0
- package/dist/django-LEJ_YyjH.js +81 -0
- package/dist/dns-zone-file-CX7rXdX2.js +64 -0
- package/dist/docker-CtY3JCLx.js +127 -0
- package/dist/dot-od_DZdpT.js +102 -0
- package/dist/ebnf-DIuzViAe.js +53 -0
- package/dist/editorconfig-CX02cRV5.js +60 -0
- package/dist/eiffel-D3XUiBw2.js +67 -0
- package/dist/ejs-2AfMOM5A.js +58 -0
- package/dist/elixir-722y_YPp.js +129 -0
- package/dist/elm-CIyhdE5y.js +78 -0
- package/dist/erb-B4chbVqA.js +60 -0
- package/dist/erlang-DxizlpkP.js +76 -0
- package/dist/etlua-D_9hun9v.js +58 -0
- package/dist/excel-formula-CmpI_82m.js +95 -0
- package/dist/factor-krg_8lb-.js +949 -0
- package/dist/false-B2gdCewG.js +60 -0
- package/dist/firestore-security-rules-xige90gq.js +67 -0
- package/dist/flow-bpD4sbhm.js +57 -0
- package/dist/fortran-B4crZzNk.js +73 -0
- package/dist/fsharp-BnvVN9HC.js +105 -0
- package/dist/ftl-BoWDVp6s.js +146 -0
- package/dist/gap-DxJ82BxA.js +78 -0
- package/dist/gcode-u6kBGAFD.js +49 -0
- package/dist/gdscript-DvuFm0WL.js +60 -0
- package/dist/gedcom-D6YNHC5R.js +61 -0
- package/dist/gherkin-DhC07ENE.js +115 -0
- package/dist/git-5vwNu_fL.js +96 -0
- package/dist/glsl-BGzQvWQa.js +39 -0
- package/dist/gml-DQQsqa0X.js +40 -0
- package/dist/gn-Bz3fehJS.js +76 -0
- package/dist/go-DQVNbr0F.js +57 -0
- package/dist/go-module-DAdBkEV6.js +55 -0
- package/dist/graphql-b5aI1fau.js +154 -0
- package/dist/groovy-C4Zi8h0f.js +82 -0
- package/dist/haml-B9jL77OH.js +172 -0
- package/dist/handlebars-BWszzUxR.js +74 -0
- package/dist/haskell-BrIvnyGx.js +26 -0
- package/dist/haskell-DR6jYji5.js +75 -0
- package/dist/haxe-DUpmVd5P.js +105 -0
- package/dist/hcl-CLqVpYtA.js +93 -0
- package/dist/hlsl-CsYJVSWg.js +55 -0
- package/dist/hoon-D0TgxHvB.js +47 -0
- package/dist/hpkp-BiU-mQjG.js +41 -0
- package/dist/hsts-DE54dR1b.js +41 -0
- package/dist/http-CfgOm4UI.js +155 -0
- package/dist/ichigojam-CVZ6Aj_t.js +46 -0
- package/dist/icon-CekiVVmc.js +53 -0
- package/dist/icu-message-format-CJA9loKb.js +165 -0
- package/dist/idris-KG9ztadM.js +51 -0
- package/dist/iecst-wFMMjMpf.js +65 -0
- package/dist/ignore-Byv4NN_B.js +51 -0
- package/dist/index-Sj89RFCY.js +136569 -0
- package/dist/index.esm.js +2 -683
- package/dist/index.umd.js +1611 -15
- package/dist/inform7-YsL-LiaC.js +90 -0
- package/dist/ini-ChNiYeuM.js +73 -0
- package/dist/io-BzLClKN_.js +55 -0
- package/dist/j-BuLAn7Gf.js +61 -0
- package/dist/java-3PJ6FLyt.js +26 -0
- package/dist/java-DYIb7l3j.js +98 -0
- package/dist/javadoc-BnSaiIyg.js +118 -0
- package/dist/javadoclike-BSqXhy54.js +26 -0
- package/dist/javadoclike-CHbTYI14.js +59 -0
- package/dist/javascript-Cl708kfq.js +152 -0
- package/dist/javastacktrace-DVGIqwxN.js +167 -0
- package/dist/jexl-DMjq6Vaw.js +47 -0
- package/dist/jolie-DXoSR52A.js +72 -0
- package/dist/jq-Dp1c5kuj.js +100 -0
- package/dist/js-extras-DJfB1MC8.js +150 -0
- package/dist/js-templates--GrCX2F1.js +197 -0
- package/dist/jsdoc-vErSu9Cr.js +116 -0
- package/dist/json-BW8KBIeJ.js +35 -0
- package/dist/json-BefNJCW-.js +26 -0
- package/dist/json5-CsdIXkOZ.js +56 -0
- package/dist/jsonp-Dz_5Lt-E.js +41 -0
- package/dist/jsstacktrace-DbBQ3Cv7.js +74 -0
- package/dist/jsx-Bv5_R7Yd.js +26 -0
- package/dist/jsx-FTe7XA1B.js +77 -0
- package/dist/julia-CoYGw2IR.js +68 -0
- package/dist/keepalived-CPWdwddz.js +81 -0
- package/dist/keyman-DNslP0Yy.js +76 -0
- package/dist/kotlin-CbZgjbyh.js +108 -0
- package/dist/kumir-Q_jLwxfZ.js +120 -0
- package/dist/kusto-dM9uOfWk.js +71 -0
- package/dist/latex-Bfeq39tO.js +92 -0
- package/dist/latte-CFxOlcdj.js +101 -0
- package/dist/less-DwfFB3qp.js +75 -0
- package/dist/lilypond-DaH_baew.js +104 -0
- package/dist/liquid-5rAVI9Ad.js +97 -0
- package/dist/lisp-Btc3xid7.js +194 -0
- package/dist/livescript-DQvJc3cA.js +150 -0
- package/dist/llvm-B7k0U20m.js +52 -0
- package/dist/log-B7ulCZCI.js +133 -0
- package/dist/lolcode-BEEMlfuU.js +81 -0
- package/dist/lua-BggcDXQp.js +31 -0
- package/dist/lua-D-T62TZ5.js +26 -0
- package/dist/magma-DAN3ZGAI.js +63 -0
- package/dist/makefile-Bjl-N6S3.js +63 -0
- package/dist/markdown-6Q2QSFJe.js +355 -0
- package/dist/markup-Bwuswjib.js +194 -0
- package/dist/markup-templating-BLspI5oq.js +26 -0
- package/dist/markup-templating-CVTxtFGH.js +77 -0
- package/dist/matlab-Bim6HLuO.js +46 -0
- package/dist/maxscript-BJqnafAC.js +97 -0
- package/dist/mel-C4iJe_aZ.js +74 -0
- package/dist/mermaid-DbKsw5IU.js +137 -0
- package/dist/mizar-DdUuEnQ0.js +45 -0
- package/dist/mongodb-C7OZqIiL.js +321 -0
- package/dist/monkey-CFQNpGhn.js +61 -0
- package/dist/moonscript-BDdCZd5M.js +87 -0
- package/dist/n1ql-C-ll6pgt.js +55 -0
- package/dist/n4js-DCLtuFdY.js +43 -0
- package/dist/nand2tetris-hdl-DJsK5r3l.js +42 -0
- package/dist/naniscript-DtHo8Sfl.js +165 -0
- package/dist/nasm-gJZT8LPh.js +57 -0
- package/dist/neon-SaMGcsnU.js +73 -0
- package/dist/nevod-Dqvto6vw.js +158 -0
- package/dist/nginx-Cp89qRQy.js +82 -0
- package/dist/nim-CdGVC6Mb.js +75 -0
- package/dist/nix-jnfiSyYI.js +69 -0
- package/dist/nsis-BZ4yPak6.js +58 -0
- package/dist/objectivec-B9lo2Gq2.js +44 -0
- package/dist/ocaml-DtZ_IyiS.js +88 -0
- package/dist/opencl-CtUznKol.js +83 -0
- package/dist/openqasm-BAmjbx7B.js +50 -0
- package/dist/oz-mvOvhn7u.js +61 -0
- package/dist/parigp-B5Xdmiju.js +81 -0
- package/dist/parser-Ct77dMe3.js +106 -0
- package/dist/pascal-Dwf-aqDs.js +95 -0
- package/dist/pascaligo-DWTvG1fw.js +115 -0
- package/dist/pcaxis-BUnNg5h_.js +84 -0
- package/dist/peoplecode-CewkQs1u.js +74 -0
- package/dist/perl-CmRi-uRU.js +164 -0
- package/dist/php-C_FrOCG4.js +334 -0
- package/dist/php-e7f7GtZ8.js +26 -0
- package/dist/php-extras-ATZDccPm.js +50 -0
- package/dist/phpdoc-uba1O-5-.js +61 -0
- package/dist/plsql-BLNilzVM.js +51 -0
- package/dist/powerquery-CddEWH0P.js +83 -0
- package/dist/powershell-SimxvdWh.js +88 -0
- package/dist/processing-IeXhsRmw.js +46 -0
- package/dist/prolog-CnTr7enQ.js +52 -0
- package/dist/promql-DpmXmCiA.js +120 -0
- package/dist/properties-BraQbkIL.js +42 -0
- package/dist/protobuf-BKmtm9wI.js +71 -0
- package/dist/psl-DfJLNMzA.js +68 -0
- package/dist/pug-C7olXkyh.js +212 -0
- package/dist/puppet-DMdAuQ_Z.js +167 -0
- package/dist/pure-BVQraXQo.js +111 -0
- package/dist/purebasic-DnAwivDW.js +87 -0
- package/dist/purescript-BBcUX3cf.js +62 -0
- package/dist/python-C9JXUpy2.js +94 -0
- package/dist/q-Ct9Ut4C4.js +83 -0
- package/dist/qml-DubjWeE3.js +103 -0
- package/dist/qore-CDjxpVlT.js +53 -0
- package/dist/qsharp-Dyr5mrma.js +128 -0
- package/dist/r-B4F2KUJL.js +55 -0
- package/dist/racket-D5k9UW-t.js +50 -0
- package/dist/reason-Cs82zJO7.js +54 -0
- package/dist/regex-Z8MvaNEm.js +124 -0
- package/dist/rego-CcGrxeab.js +58 -0
- package/dist/renpy-mByYQWSM.js +51 -0
- package/dist/rest-BoR9ZMoX.js +231 -0
- package/dist/rip-C3Bf4Bpl.js +62 -0
- package/dist/roboconf-1MYmsJJ7.js +60 -0
- package/dist/robotframework-fBSrPGHK.js +122 -0
- package/dist/ruby-BQlisu6i.js +182 -0
- package/dist/ruby-DRrUXRqW.js +26 -0
- package/dist/rust-DhUR7ICB.js +149 -0
- package/dist/sas-D7DM5vmM.js +362 -0
- package/dist/sass-B-3W9xmk.js +96 -0
- package/dist/scala-DmHnWeTz.js +80 -0
- package/dist/scheme-B-TWMKN_.js +122 -0
- package/dist/scheme-egHBLRqV.js +26 -0
- package/dist/scss-BU4D1BLj.js +106 -0
- package/dist/shell-session-6QFBv7G6.js +93 -0
- package/dist/smali-B48Y4QYt.js +112 -0
- package/dist/smalltalk-w59b04aF.js +71 -0
- package/dist/smarty-CnWvL-Ef.js +147 -0
- package/dist/sml-cUUD1qMQ.js +91 -0
- package/dist/solidity-Drt__SLk.js +49 -0
- package/dist/solution-file-CYG1BOQK.js +79 -0
- package/dist/soy-BZNQzgkB.js +112 -0
- package/dist/sparql-BQDndvZG.js +49 -0
- package/dist/splunk-spl-ezOLCJwA.js +57 -0
- package/dist/sqf-C83ezg-4.js +63 -0
- package/dist/sql-CVBSuRzU.js +26 -0
- package/dist/sql-qhcRp-Km.js +44 -0
- package/dist/squirrel-2r-3bEO_.js +74 -0
- package/dist/stan-D2wLHzr8.js +86 -0
- package/dist/style.css +1 -1
- package/dist/stylus-KkSvURTJ.js +165 -0
- package/dist/swift-c7528WsQ.js +152 -0
- package/dist/systemd-DWsV0AtP.js +88 -0
- package/dist/t4-cs-D7NmzTCB.js +38 -0
- package/dist/t4-templating-Bc9GyRcs.js +26 -0
- package/dist/t4-templating-yxm91MEk.js +56 -0
- package/dist/t4-vb-Df3tMe1Q.js +38 -0
- package/dist/tap-wFXvu_No.js +56 -0
- package/dist/tcl-BZqzhUcQ.js +79 -0
- package/dist/textile-DrTKyn7T.js +289 -0
- package/dist/toml-LVQpNmZe.js +86 -0
- package/dist/tremor-A_cxX8C4.js +90 -0
- package/dist/tsx-CQKNNLzi.js +46 -0
- package/dist/tt2-CPOtfoBh.js +78 -0
- package/dist/turtle-BjRE9oBS.js +26 -0
- package/dist/turtle-z6QfbtiY.js +61 -0
- package/dist/twig-Cz25rowk.js +72 -0
- package/dist/typescript--VNBoLO-.js +56 -0
- package/dist/typescript-Bx2QMcny.js +26 -0
- package/dist/typoscript-BdH7x5a4.js +109 -0
- package/dist/unrealscript-Cb8322pT.js +71 -0
- package/dist/uorazor-CHv0VHYn.js +81 -0
- package/dist/uri-ci9M926F.js +116 -0
- package/dist/v-DL4z_kNT.js +106 -0
- package/dist/vala-CPIzd5en.js +113 -0
- package/dist/vbnet-BoCvq106.js +26 -0
- package/dist/vbnet-ClfmYufs.js +36 -0
- package/dist/velocity-CBXhMUrK.js +99 -0
- package/dist/verilog-C1ZX-Tr8.js +59 -0
- package/dist/vhdl-CLlMgFjz.js +56 -0
- package/dist/vim-BuFUFT06.js +43 -0
- package/dist/visual-basic-CzPES6jG.js +59 -0
- package/dist/warpscript-C5YvStKz.js +54 -0
- package/dist/wasm-txCKMkgE.js +64 -0
- package/dist/web-idl-B4OgJf1y.js +118 -0
- package/dist/wiki-C6_DR7WK.js +110 -0
- package/dist/wolfram-D9ETP9M6.js +58 -0
- package/dist/wren-CkhJWcmB.js +121 -0
- package/dist/xeora-Cg3OrGlT.js +147 -0
- package/dist/xml-doc-C0mFvWUS.js +56 -0
- package/dist/xojo-CW6K9MHL.js +51 -0
- package/dist/xquery-B0ssbj_m.js +118 -0
- package/dist/yaml-S0xfBtlT.js +26 -0
- package/dist/yaml-hxc7aP7n.js +92 -0
- package/dist/yang-Dg6OSQ6Y.js +53 -0
- package/dist/zig-xuUtE8Pe.js +117 -0
- package/package.json +30 -4
- package/dist/index.d.ts +0 -2
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { g as S } from "./index-Sj89RFCY.js";
|
|
2
|
+
function E(l, b) {
|
|
3
|
+
for (var e = 0; e < b.length; e++) {
|
|
4
|
+
const s = b[e];
|
|
5
|
+
if (typeof s != "string" && !Array.isArray(s)) {
|
|
6
|
+
for (const o in s)
|
|
7
|
+
if (o !== "default" && !(o in l)) {
|
|
8
|
+
const d = Object.getOwnPropertyDescriptor(s, o);
|
|
9
|
+
d && Object.defineProperty(l, o, d.get ? d : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => s[o]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(l, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var m, _;
|
|
19
|
+
function C() {
|
|
20
|
+
if (_) return m;
|
|
21
|
+
_ = 1, m = l, l.displayName = "markdown", l.aliases = ["md"];
|
|
22
|
+
function l(b) {
|
|
23
|
+
(function(e) {
|
|
24
|
+
var s = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
25
|
+
function o(t) {
|
|
26
|
+
return t = t.replace(/<inner>/g, function() {
|
|
27
|
+
return s;
|
|
28
|
+
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + t + ")");
|
|
29
|
+
}
|
|
30
|
+
var d = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, f = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(
|
|
31
|
+
/__/g,
|
|
32
|
+
function() {
|
|
33
|
+
return d;
|
|
34
|
+
}
|
|
35
|
+
), h = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
|
|
36
|
+
e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
|
|
37
|
+
"front-matter-block": {
|
|
38
|
+
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
|
39
|
+
lookbehind: !0,
|
|
40
|
+
greedy: !0,
|
|
41
|
+
inside: {
|
|
42
|
+
punctuation: /^---|---$/,
|
|
43
|
+
"front-matter": {
|
|
44
|
+
pattern: /\S+(?:\s+\S+)*/,
|
|
45
|
+
alias: ["yaml", "language-yaml"],
|
|
46
|
+
inside: e.languages.yaml
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
blockquote: {
|
|
51
|
+
// > ...
|
|
52
|
+
pattern: /^>(?:[\t ]*>)*/m,
|
|
53
|
+
alias: "punctuation"
|
|
54
|
+
},
|
|
55
|
+
table: {
|
|
56
|
+
pattern: RegExp(
|
|
57
|
+
"^" + f + h + "(?:" + f + ")*",
|
|
58
|
+
"m"
|
|
59
|
+
),
|
|
60
|
+
inside: {
|
|
61
|
+
"table-data-rows": {
|
|
62
|
+
pattern: RegExp(
|
|
63
|
+
"^(" + f + h + ")(?:" + f + ")*$"
|
|
64
|
+
),
|
|
65
|
+
lookbehind: !0,
|
|
66
|
+
inside: {
|
|
67
|
+
"table-data": {
|
|
68
|
+
pattern: RegExp(d),
|
|
69
|
+
inside: e.languages.markdown
|
|
70
|
+
},
|
|
71
|
+
punctuation: /\|/
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"table-line": {
|
|
75
|
+
pattern: RegExp("^(" + f + ")" + h + "$"),
|
|
76
|
+
lookbehind: !0,
|
|
77
|
+
inside: {
|
|
78
|
+
punctuation: /\||:?-{3,}:?/
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"table-header-row": {
|
|
82
|
+
pattern: RegExp("^" + f + "$"),
|
|
83
|
+
inside: {
|
|
84
|
+
"table-header": {
|
|
85
|
+
pattern: RegExp(d),
|
|
86
|
+
alias: "important",
|
|
87
|
+
inside: e.languages.markdown
|
|
88
|
+
},
|
|
89
|
+
punctuation: /\|/
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
code: [
|
|
95
|
+
{
|
|
96
|
+
// Prefixed by 4 spaces or 1 tab and preceded by an empty line
|
|
97
|
+
pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
|
|
98
|
+
lookbehind: !0,
|
|
99
|
+
alias: "keyword"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
// ```optional language
|
|
103
|
+
// code block
|
|
104
|
+
// ```
|
|
105
|
+
pattern: /^```[\s\S]*?^```$/m,
|
|
106
|
+
greedy: !0,
|
|
107
|
+
inside: {
|
|
108
|
+
"code-block": {
|
|
109
|
+
pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
|
|
110
|
+
lookbehind: !0
|
|
111
|
+
},
|
|
112
|
+
"code-language": {
|
|
113
|
+
pattern: /^(```).+/,
|
|
114
|
+
lookbehind: !0
|
|
115
|
+
},
|
|
116
|
+
punctuation: /```/
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
title: [
|
|
121
|
+
{
|
|
122
|
+
// title 1
|
|
123
|
+
// =======
|
|
124
|
+
// title 2
|
|
125
|
+
// -------
|
|
126
|
+
pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
|
|
127
|
+
alias: "important",
|
|
128
|
+
inside: {
|
|
129
|
+
punctuation: /==+$|--+$/
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
// # title 1
|
|
134
|
+
// ###### title 6
|
|
135
|
+
pattern: /(^\s*)#.+/m,
|
|
136
|
+
lookbehind: !0,
|
|
137
|
+
alias: "important",
|
|
138
|
+
inside: {
|
|
139
|
+
punctuation: /^#+|#+$/
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
hr: {
|
|
144
|
+
// ***
|
|
145
|
+
// ---
|
|
146
|
+
// * * *
|
|
147
|
+
// -----------
|
|
148
|
+
pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
|
|
149
|
+
lookbehind: !0,
|
|
150
|
+
alias: "punctuation"
|
|
151
|
+
},
|
|
152
|
+
list: {
|
|
153
|
+
// * item
|
|
154
|
+
// + item
|
|
155
|
+
// - item
|
|
156
|
+
// 1. item
|
|
157
|
+
pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
|
|
158
|
+
lookbehind: !0,
|
|
159
|
+
alias: "punctuation"
|
|
160
|
+
},
|
|
161
|
+
"url-reference": {
|
|
162
|
+
// [id]: http://example.com "Optional title"
|
|
163
|
+
// [id]: http://example.com 'Optional title'
|
|
164
|
+
// [id]: http://example.com (Optional title)
|
|
165
|
+
// [id]: <http://example.com> "Optional title"
|
|
166
|
+
pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
|
|
167
|
+
inside: {
|
|
168
|
+
variable: {
|
|
169
|
+
pattern: /^(!?\[)[^\]]+/,
|
|
170
|
+
lookbehind: !0
|
|
171
|
+
},
|
|
172
|
+
string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
|
|
173
|
+
punctuation: /^[\[\]!:]|[<>]/
|
|
174
|
+
},
|
|
175
|
+
alias: "url"
|
|
176
|
+
},
|
|
177
|
+
bold: {
|
|
178
|
+
// **strong**
|
|
179
|
+
// __strong__
|
|
180
|
+
// allow one nested instance of italic text using the same delimiter
|
|
181
|
+
pattern: o(
|
|
182
|
+
/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source
|
|
183
|
+
),
|
|
184
|
+
lookbehind: !0,
|
|
185
|
+
greedy: !0,
|
|
186
|
+
inside: {
|
|
187
|
+
content: {
|
|
188
|
+
pattern: /(^..)[\s\S]+(?=..$)/,
|
|
189
|
+
lookbehind: !0,
|
|
190
|
+
inside: {}
|
|
191
|
+
// see below
|
|
192
|
+
},
|
|
193
|
+
punctuation: /\*\*|__/
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
italic: {
|
|
197
|
+
// *em*
|
|
198
|
+
// _em_
|
|
199
|
+
// allow one nested instance of bold text using the same delimiter
|
|
200
|
+
pattern: o(
|
|
201
|
+
/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source
|
|
202
|
+
),
|
|
203
|
+
lookbehind: !0,
|
|
204
|
+
greedy: !0,
|
|
205
|
+
inside: {
|
|
206
|
+
content: {
|
|
207
|
+
pattern: /(^.)[\s\S]+(?=.$)/,
|
|
208
|
+
lookbehind: !0,
|
|
209
|
+
inside: {}
|
|
210
|
+
// see below
|
|
211
|
+
},
|
|
212
|
+
punctuation: /[*_]/
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
strike: {
|
|
216
|
+
// ~~strike through~~
|
|
217
|
+
// ~strike~
|
|
218
|
+
// eslint-disable-next-line regexp/strict
|
|
219
|
+
pattern: o(/(~~?)(?:(?!~)<inner>)+\2/.source),
|
|
220
|
+
lookbehind: !0,
|
|
221
|
+
greedy: !0,
|
|
222
|
+
inside: {
|
|
223
|
+
content: {
|
|
224
|
+
pattern: /(^~~?)[\s\S]+(?=\1$)/,
|
|
225
|
+
lookbehind: !0,
|
|
226
|
+
inside: {}
|
|
227
|
+
// see below
|
|
228
|
+
},
|
|
229
|
+
punctuation: /~~?/
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"code-snippet": {
|
|
233
|
+
// `code`
|
|
234
|
+
// ``code``
|
|
235
|
+
pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
|
|
236
|
+
lookbehind: !0,
|
|
237
|
+
greedy: !0,
|
|
238
|
+
alias: ["code", "keyword"]
|
|
239
|
+
},
|
|
240
|
+
url: {
|
|
241
|
+
// [example](http://example.com "Optional title")
|
|
242
|
+
// [example][id]
|
|
243
|
+
// [example] [id]
|
|
244
|
+
pattern: o(
|
|
245
|
+
/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source
|
|
246
|
+
),
|
|
247
|
+
lookbehind: !0,
|
|
248
|
+
greedy: !0,
|
|
249
|
+
inside: {
|
|
250
|
+
operator: /^!/,
|
|
251
|
+
content: {
|
|
252
|
+
pattern: /(^\[)[^\]]+(?=\])/,
|
|
253
|
+
lookbehind: !0,
|
|
254
|
+
inside: {}
|
|
255
|
+
// see below
|
|
256
|
+
},
|
|
257
|
+
variable: {
|
|
258
|
+
pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
|
|
259
|
+
lookbehind: !0
|
|
260
|
+
},
|
|
261
|
+
url: {
|
|
262
|
+
pattern: /(^\]\()[^\s)]+/,
|
|
263
|
+
lookbehind: !0
|
|
264
|
+
},
|
|
265
|
+
string: {
|
|
266
|
+
pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
|
|
267
|
+
lookbehind: !0
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}), ["url", "bold", "italic", "strike"].forEach(function(t) {
|
|
272
|
+
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(n) {
|
|
273
|
+
t !== n && (e.languages.markdown[t].inside.content.inside[n] = e.languages.markdown[n]);
|
|
274
|
+
});
|
|
275
|
+
}), e.hooks.add("after-tokenize", function(t) {
|
|
276
|
+
if (t.language !== "markdown" && t.language !== "md")
|
|
277
|
+
return;
|
|
278
|
+
function n(i) {
|
|
279
|
+
if (!(!i || typeof i == "string"))
|
|
280
|
+
for (var r = 0, p = i.length; r < p; r++) {
|
|
281
|
+
var u = i[r];
|
|
282
|
+
if (u.type !== "code") {
|
|
283
|
+
n(u.content);
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
var g = u.content[1], a = u.content[3];
|
|
287
|
+
if (g && a && g.type === "code-language" && a.type === "code-block" && typeof g.content == "string") {
|
|
288
|
+
var c = g.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
289
|
+
c = (/[a-z][\w-]*/i.exec(c) || [""])[0].toLowerCase();
|
|
290
|
+
var k = "language-" + c;
|
|
291
|
+
a.alias ? typeof a.alias == "string" ? a.alias = [a.alias, k] : a.alias.push(k) : a.alias = [k];
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
n(t.tokens);
|
|
296
|
+
}), e.hooks.add("wrap", function(t) {
|
|
297
|
+
if (t.type === "code-block") {
|
|
298
|
+
for (var n = "", i = 0, r = t.classes.length; i < r; i++) {
|
|
299
|
+
var p = t.classes[i], u = /language-(.+)/.exec(p);
|
|
300
|
+
if (u) {
|
|
301
|
+
n = u[1];
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
var g = e.languages[n];
|
|
306
|
+
if (g)
|
|
307
|
+
t.content = e.highlight(
|
|
308
|
+
$(t.content.value),
|
|
309
|
+
g,
|
|
310
|
+
n
|
|
311
|
+
);
|
|
312
|
+
else if (n && n !== "none" && e.plugins.autoloader) {
|
|
313
|
+
var a = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
|
314
|
+
t.attributes.id = a, e.plugins.autoloader.loadLanguages(n, function() {
|
|
315
|
+
var c = document.getElementById(a);
|
|
316
|
+
c && (c.innerHTML = e.highlight(
|
|
317
|
+
c.textContent,
|
|
318
|
+
e.languages[n],
|
|
319
|
+
n
|
|
320
|
+
));
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
var y = RegExp(e.languages.markup.tag.pattern.source, "gi"), v = {
|
|
326
|
+
amp: "&",
|
|
327
|
+
lt: "<",
|
|
328
|
+
gt: ">",
|
|
329
|
+
quot: '"'
|
|
330
|
+
}, x = String.fromCodePoint || String.fromCharCode;
|
|
331
|
+
function $(t) {
|
|
332
|
+
var n = t.replace(y, "");
|
|
333
|
+
return n = n.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(i, r) {
|
|
334
|
+
if (r = r.toLowerCase(), r[0] === "#") {
|
|
335
|
+
var p;
|
|
336
|
+
return r[1] === "x" ? p = parseInt(r.slice(2), 16) : p = Number(r.slice(1)), x(p);
|
|
337
|
+
} else {
|
|
338
|
+
var u = v[r];
|
|
339
|
+
return u || i;
|
|
340
|
+
}
|
|
341
|
+
}), n;
|
|
342
|
+
}
|
|
343
|
+
e.languages.md = e.languages.markdown;
|
|
344
|
+
})(b);
|
|
345
|
+
}
|
|
346
|
+
return m;
|
|
347
|
+
}
|
|
348
|
+
var w = C();
|
|
349
|
+
const R = /* @__PURE__ */ S(w), N = /* @__PURE__ */ E({
|
|
350
|
+
__proto__: null,
|
|
351
|
+
default: R
|
|
352
|
+
}, [w]);
|
|
353
|
+
export {
|
|
354
|
+
N as m
|
|
355
|
+
};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { g as i } from "./index-Sj89RFCY.js";
|
|
2
|
+
function p(e, n) {
|
|
3
|
+
for (var a = 0; a < n.length; a++) {
|
|
4
|
+
const t = n[a];
|
|
5
|
+
if (typeof t != "string" && !Array.isArray(t)) {
|
|
6
|
+
for (const u in t)
|
|
7
|
+
if (u !== "default" && !(u in e)) {
|
|
8
|
+
const s = Object.getOwnPropertyDescriptor(t, u);
|
|
9
|
+
s && Object.defineProperty(e, u, s.get ? s : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => t[u]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var l = r;
|
|
19
|
+
r.displayName = "markup";
|
|
20
|
+
r.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"];
|
|
21
|
+
function r(e) {
|
|
22
|
+
e.languages.markup = {
|
|
23
|
+
comment: {
|
|
24
|
+
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
25
|
+
greedy: !0
|
|
26
|
+
},
|
|
27
|
+
prolog: {
|
|
28
|
+
pattern: /<\?[\s\S]+?\?>/,
|
|
29
|
+
greedy: !0
|
|
30
|
+
},
|
|
31
|
+
doctype: {
|
|
32
|
+
// https://www.w3.org/TR/xml/#NT-doctypedecl
|
|
33
|
+
pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
|
|
34
|
+
greedy: !0,
|
|
35
|
+
inside: {
|
|
36
|
+
"internal-subset": {
|
|
37
|
+
pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
|
|
38
|
+
lookbehind: !0,
|
|
39
|
+
greedy: !0,
|
|
40
|
+
inside: null
|
|
41
|
+
// see below
|
|
42
|
+
},
|
|
43
|
+
string: {
|
|
44
|
+
pattern: /"[^"]*"|'[^']*'/,
|
|
45
|
+
greedy: !0
|
|
46
|
+
},
|
|
47
|
+
punctuation: /^<!|>$|[[\]]/,
|
|
48
|
+
"doctype-tag": /^DOCTYPE/i,
|
|
49
|
+
name: /[^\s<>'"]+/
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
cdata: {
|
|
53
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
54
|
+
greedy: !0
|
|
55
|
+
},
|
|
56
|
+
tag: {
|
|
57
|
+
pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
|
|
58
|
+
greedy: !0,
|
|
59
|
+
inside: {
|
|
60
|
+
tag: {
|
|
61
|
+
pattern: /^<\/?[^\s>\/]+/,
|
|
62
|
+
inside: {
|
|
63
|
+
punctuation: /^<\/?/,
|
|
64
|
+
namespace: /^[^\s>\/:]+:/
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"special-attr": [],
|
|
68
|
+
"attr-value": {
|
|
69
|
+
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
|
|
70
|
+
inside: {
|
|
71
|
+
punctuation: [
|
|
72
|
+
{
|
|
73
|
+
pattern: /^=/,
|
|
74
|
+
alias: "attr-equals"
|
|
75
|
+
},
|
|
76
|
+
/"|'/
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
punctuation: /\/?>/,
|
|
81
|
+
"attr-name": {
|
|
82
|
+
pattern: /[^\s>\/]+/,
|
|
83
|
+
inside: {
|
|
84
|
+
namespace: /^[^\s>\/:]+:/
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
entity: [
|
|
90
|
+
{
|
|
91
|
+
pattern: /&[\da-z]{1,8};/i,
|
|
92
|
+
alias: "named-entity"
|
|
93
|
+
},
|
|
94
|
+
/&#x?[\da-f]{1,8};/i
|
|
95
|
+
]
|
|
96
|
+
}, e.languages.markup.tag.inside["attr-value"].inside.entity = e.languages.markup.entity, e.languages.markup.doctype.inside["internal-subset"].inside = e.languages.markup, e.hooks.add("wrap", function(n) {
|
|
97
|
+
n.type === "entity" && (n.attributes.title = n.content.value.replace(/&/, "&"));
|
|
98
|
+
}), Object.defineProperty(e.languages.markup.tag, "addInlined", {
|
|
99
|
+
/**
|
|
100
|
+
* Adds an inlined language to markup.
|
|
101
|
+
*
|
|
102
|
+
* An example of an inlined language is CSS with `<style>` tags.
|
|
103
|
+
*
|
|
104
|
+
* @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
|
|
105
|
+
* case insensitive.
|
|
106
|
+
* @param {string} lang The language key.
|
|
107
|
+
* @example
|
|
108
|
+
* addInlined('style', 'css');
|
|
109
|
+
*/
|
|
110
|
+
value: function(a, t) {
|
|
111
|
+
var u = {};
|
|
112
|
+
u["language-" + t] = {
|
|
113
|
+
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
114
|
+
lookbehind: !0,
|
|
115
|
+
inside: e.languages[t]
|
|
116
|
+
}, u.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
117
|
+
var s = {
|
|
118
|
+
"included-cdata": {
|
|
119
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
120
|
+
inside: u
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
s["language-" + t] = {
|
|
124
|
+
pattern: /[\s\S]+/,
|
|
125
|
+
inside: e.languages[t]
|
|
126
|
+
};
|
|
127
|
+
var g = {};
|
|
128
|
+
g[a] = {
|
|
129
|
+
pattern: RegExp(
|
|
130
|
+
/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(
|
|
131
|
+
/__/g,
|
|
132
|
+
function() {
|
|
133
|
+
return a;
|
|
134
|
+
}
|
|
135
|
+
),
|
|
136
|
+
"i"
|
|
137
|
+
),
|
|
138
|
+
lookbehind: !0,
|
|
139
|
+
greedy: !0,
|
|
140
|
+
inside: s
|
|
141
|
+
}, e.languages.insertBefore("markup", "cdata", g);
|
|
142
|
+
}
|
|
143
|
+
}), Object.defineProperty(e.languages.markup.tag, "addAttribute", {
|
|
144
|
+
/**
|
|
145
|
+
* Adds an pattern to highlight languages embedded in HTML attributes.
|
|
146
|
+
*
|
|
147
|
+
* An example of an inlined language is CSS with `style` attributes.
|
|
148
|
+
*
|
|
149
|
+
* @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
|
|
150
|
+
* case insensitive.
|
|
151
|
+
* @param {string} lang The language key.
|
|
152
|
+
* @example
|
|
153
|
+
* addAttribute('style', 'css');
|
|
154
|
+
*/
|
|
155
|
+
value: function(n, a) {
|
|
156
|
+
e.languages.markup.tag.inside["special-attr"].push({
|
|
157
|
+
pattern: RegExp(
|
|
158
|
+
/(^|["'\s])/.source + "(?:" + n + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
|
159
|
+
"i"
|
|
160
|
+
),
|
|
161
|
+
lookbehind: !0,
|
|
162
|
+
inside: {
|
|
163
|
+
"attr-name": /^[^\s=]+/,
|
|
164
|
+
"attr-value": {
|
|
165
|
+
pattern: /=[\s\S]+/,
|
|
166
|
+
inside: {
|
|
167
|
+
value: {
|
|
168
|
+
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
169
|
+
lookbehind: !0,
|
|
170
|
+
alias: [a, "language-" + a],
|
|
171
|
+
inside: e.languages[a]
|
|
172
|
+
},
|
|
173
|
+
punctuation: [
|
|
174
|
+
{
|
|
175
|
+
pattern: /^=/,
|
|
176
|
+
alias: "attr-equals"
|
|
177
|
+
},
|
|
178
|
+
/"|'/
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}), e.languages.html = e.languages.markup, e.languages.mathml = e.languages.markup, e.languages.svg = e.languages.markup, e.languages.xml = e.languages.extend("markup", {}), e.languages.ssml = e.languages.xml, e.languages.atom = e.languages.xml, e.languages.rss = e.languages.xml;
|
|
186
|
+
}
|
|
187
|
+
const d = /* @__PURE__ */ i(l), c = /* @__PURE__ */ p({
|
|
188
|
+
__proto__: null,
|
|
189
|
+
default: d
|
|
190
|
+
}, [l]);
|
|
191
|
+
export {
|
|
192
|
+
l as a,
|
|
193
|
+
c as m
|
|
194
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { g as i } from "./index-Sj89RFCY.js";
|
|
2
|
+
import { r as m } from "./markup-templating-CVTxtFGH.js";
|
|
3
|
+
function f(t, n) {
|
|
4
|
+
for (var o = 0; o < n.length; o++) {
|
|
5
|
+
const e = n[o];
|
|
6
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
7
|
+
for (const r in e)
|
|
8
|
+
if (r !== "default" && !(r in t)) {
|
|
9
|
+
const a = Object.getOwnPropertyDescriptor(e, r);
|
|
10
|
+
a && Object.defineProperty(t, r, a.get ? a : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => e[r]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var p = m();
|
|
20
|
+
const s = /* @__PURE__ */ i(p), l = /* @__PURE__ */ f({
|
|
21
|
+
__proto__: null,
|
|
22
|
+
default: s
|
|
23
|
+
}, [p]);
|
|
24
|
+
export {
|
|
25
|
+
l as m
|
|
26
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var s, _;
|
|
2
|
+
function S() {
|
|
3
|
+
if (_) return s;
|
|
4
|
+
_ = 1, s = c, c.displayName = "markupTemplating", c.aliases = [];
|
|
5
|
+
function c(m) {
|
|
6
|
+
(function(f) {
|
|
7
|
+
function k(a, t) {
|
|
8
|
+
return "___" + a.toUpperCase() + t + "___";
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperties(f.languages["markup-templating"] = {}, {
|
|
11
|
+
buildPlaceholders: {
|
|
12
|
+
/**
|
|
13
|
+
* Tokenize all inline templating expressions matching `placeholderPattern`.
|
|
14
|
+
*
|
|
15
|
+
* If `replaceFilter` is provided, only matches of `placeholderPattern` for which `replaceFilter` returns
|
|
16
|
+
* `true` will be replaced.
|
|
17
|
+
*
|
|
18
|
+
* @param {object} env The environment of the `before-tokenize` hook.
|
|
19
|
+
* @param {string} language The language id.
|
|
20
|
+
* @param {RegExp} placeholderPattern The matches of this pattern will be replaced by placeholders.
|
|
21
|
+
* @param {(match: string) => boolean} [replaceFilter]
|
|
22
|
+
*/
|
|
23
|
+
value: function(a, t, o, p) {
|
|
24
|
+
if (a.language === t) {
|
|
25
|
+
var u = a.tokenStack = [];
|
|
26
|
+
a.code = a.code.replace(o, function(n) {
|
|
27
|
+
if (typeof p == "function" && !p(n))
|
|
28
|
+
return n;
|
|
29
|
+
for (var i = u.length, r; a.code.indexOf(r = k(t, i)) !== -1; )
|
|
30
|
+
++i;
|
|
31
|
+
return u[i] = n, r;
|
|
32
|
+
}), a.grammar = f.languages.markup;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
tokenizePlaceholders: {
|
|
37
|
+
/**
|
|
38
|
+
* Replace placeholders with proper tokens after tokenizing.
|
|
39
|
+
*
|
|
40
|
+
* @param {object} env The environment of the `after-tokenize` hook.
|
|
41
|
+
* @param {string} language The language id.
|
|
42
|
+
*/
|
|
43
|
+
value: function(a, t) {
|
|
44
|
+
if (a.language !== t || !a.tokenStack)
|
|
45
|
+
return;
|
|
46
|
+
a.grammar = f.languages[t];
|
|
47
|
+
var o = 0, p = Object.keys(a.tokenStack);
|
|
48
|
+
function u(n) {
|
|
49
|
+
for (var i = 0; i < n.length && !(o >= p.length); i++) {
|
|
50
|
+
var r = n[i];
|
|
51
|
+
if (typeof r == "string" || r.content && typeof r.content == "string") {
|
|
52
|
+
var y = p[o], d = a.tokenStack[y], l = typeof r == "string" ? r : r.content, h = k(t, y), g = l.indexOf(h);
|
|
53
|
+
if (g > -1) {
|
|
54
|
+
++o;
|
|
55
|
+
var v = l.substring(0, g), b = new f.Token(
|
|
56
|
+
t,
|
|
57
|
+
f.tokenize(d, a.grammar),
|
|
58
|
+
"language-" + t,
|
|
59
|
+
d
|
|
60
|
+
), T = l.substring(g + h.length), e = [];
|
|
61
|
+
v && e.push.apply(e, u([v])), e.push(b), T && e.push.apply(e, u([T])), typeof r == "string" ? n.splice.apply(n, [i, 1].concat(e)) : r.content = e;
|
|
62
|
+
}
|
|
63
|
+
} else r.content && u(r.content);
|
|
64
|
+
}
|
|
65
|
+
return n;
|
|
66
|
+
}
|
|
67
|
+
u(a.tokens);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
})(m);
|
|
72
|
+
}
|
|
73
|
+
return s;
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
S as r
|
|
77
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { g as l } from "./index-Sj89RFCY.js";
|
|
2
|
+
function f(e, a) {
|
|
3
|
+
for (var n = 0; n < a.length; n++) {
|
|
4
|
+
const t = a[n];
|
|
5
|
+
if (typeof t != "string" && !Array.isArray(t)) {
|
|
6
|
+
for (const r in t)
|
|
7
|
+
if (r !== "default" && !(r in e)) {
|
|
8
|
+
const o = Object.getOwnPropertyDescriptor(t, r);
|
|
9
|
+
o && Object.defineProperty(e, r, o.get ? o : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => t[r]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var i, s;
|
|
19
|
+
function b() {
|
|
20
|
+
if (s) return i;
|
|
21
|
+
s = 1, i = e, e.displayName = "matlab", e.aliases = [];
|
|
22
|
+
function e(a) {
|
|
23
|
+
a.languages.matlab = {
|
|
24
|
+
comment: [/%\{[\s\S]*?\}%/, /%.+/],
|
|
25
|
+
string: {
|
|
26
|
+
pattern: /\B'(?:''|[^'\r\n])*'/,
|
|
27
|
+
greedy: !0
|
|
28
|
+
},
|
|
29
|
+
// FIXME We could handle imaginary numbers as a whole
|
|
30
|
+
number: /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,
|
|
31
|
+
keyword: /\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,
|
|
32
|
+
function: /\b(?!\d)\w+(?=\s*\()/,
|
|
33
|
+
operator: /\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,
|
|
34
|
+
punctuation: /\.{3}|[.,;\[\](){}!]/
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return i;
|
|
38
|
+
}
|
|
39
|
+
var u = b();
|
|
40
|
+
const c = /* @__PURE__ */ l(u), p = /* @__PURE__ */ f({
|
|
41
|
+
__proto__: null,
|
|
42
|
+
default: c
|
|
43
|
+
}, [u]);
|
|
44
|
+
export {
|
|
45
|
+
p as m
|
|
46
|
+
};
|