@milkdown/crepe 7.3.6 → 7.4.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/lib/cjs/_view-TbSIR42F.js +27 -0
- package/lib/cjs/_view-TbSIR42F.js.map +1 -0
- package/lib/cjs/apl-99bWvYTf.js +145 -0
- package/lib/cjs/apl-99bWvYTf.js.map +1 -0
- package/lib/cjs/asciiarmor-cf0JLIr_.js +59 -0
- package/lib/cjs/asciiarmor-cf0JLIr_.js.map +1 -0
- package/lib/cjs/asn1-H4XzAvBS.js +195 -0
- package/lib/cjs/asn1-H4XzAvBS.js.map +1 -0
- package/lib/cjs/asterisk-0FgJEfZB.js +190 -0
- package/lib/cjs/asterisk-0FgJEfZB.js.map +1 -0
- package/lib/cjs/brainfuck-JX7vRZy7.js +73 -0
- package/lib/cjs/brainfuck-JX7vRZy7.js.map +1 -0
- package/lib/cjs/clike-ueXlMQy5.js +1034 -0
- package/lib/cjs/clike-ueXlMQy5.js.map +1 -0
- package/lib/cjs/clojure-6iDAG5oi.js +277 -0
- package/lib/cjs/clojure-6iDAG5oi.js.map +1 -0
- package/lib/cjs/clsx-7JLENl8W.js +62 -0
- package/lib/cjs/clsx-7JLENl8W.js.map +1 -0
- package/lib/cjs/cmake-L0RIBnfc.js +84 -0
- package/lib/cjs/cmake-L0RIBnfc.js.map +1 -0
- package/lib/cjs/cobol-oxkMh1GJ.js +238 -0
- package/lib/cjs/cobol-oxkMh1GJ.js.map +1 -0
- package/lib/cjs/coffeescript--eauIeRQ.js +332 -0
- package/lib/cjs/coffeescript--eauIeRQ.js.map +1 -0
- package/lib/cjs/commonlisp-pgSu-q6f.js +111 -0
- package/lib/cjs/commonlisp-pgSu-q6f.js.map +1 -0
- package/lib/cjs/composed-offset-position.browser.min-FwypoGc1.js +1138 -0
- package/lib/cjs/composed-offset-position.browser.min-FwypoGc1.js.map +1 -0
- package/lib/cjs/crystal-2y3I5ibZ.js +422 -0
- package/lib/cjs/crystal-2y3I5ibZ.js.map +1 -0
- package/lib/cjs/css-WH69cXzo.js +855 -0
- package/lib/cjs/css-WH69cXzo.js.map +1 -0
- package/lib/cjs/cypher-da-dqVyQ.js +125 -0
- package/lib/cjs/cypher-da-dqVyQ.js.map +1 -0
- package/lib/cjs/d-58J7EOkP.js +208 -0
- package/lib/cjs/d-58J7EOkP.js.map +1 -0
- package/lib/cjs/diff-437Hfzqm.js +33 -0
- package/lib/cjs/diff-437Hfzqm.js.map +1 -0
- package/lib/cjs/dockerfile-7i0OoaQe.js +202 -0
- package/lib/cjs/dockerfile-7i0OoaQe.js.map +1 -0
- package/lib/cjs/dtd-AKekCPPB.js +124 -0
- package/lib/cjs/dtd-AKekCPPB.js.map +1 -0
- package/lib/cjs/dylan-DLEmvz1I.js +340 -0
- package/lib/cjs/dylan-DLEmvz1I.js.map +1 -0
- package/lib/cjs/ebnf-36cJWqxB.js +154 -0
- package/lib/cjs/ebnf-36cJWqxB.js.map +1 -0
- package/lib/cjs/ecl-UWr5vJKJ.js +193 -0
- package/lib/cjs/ecl-UWr5vJKJ.js.map +1 -0
- package/lib/cjs/eiffel-Su-C9LAY.js +149 -0
- package/lib/cjs/eiffel-Su-C9LAY.js.map +1 -0
- package/lib/cjs/elm-vNNfVJj7.js +233 -0
- package/lib/cjs/elm-vNNfVJj7.js.map +1 -0
- package/lib/cjs/erlang-NM9dgYaS.js +584 -0
- package/lib/cjs/erlang-NM9dgYaS.js.map +1 -0
- package/lib/cjs/factor-RWs-4aWg.js +68 -0
- package/lib/cjs/factor-RWs-4aWg.js.map +1 -0
- package/lib/cjs/fcl-acUhGCfs.js +157 -0
- package/lib/cjs/fcl-acUhGCfs.js.map +1 -0
- package/lib/cjs/forth-sDkE6z3A.js +167 -0
- package/lib/cjs/forth-sDkE6z3A.js.map +1 -0
- package/lib/cjs/fortran-gkb4yvdk.js +175 -0
- package/lib/cjs/fortran-gkb4yvdk.js.map +1 -0
- package/lib/cjs/gas-mNA0qvkv.js +347 -0
- package/lib/cjs/gas-mNA0qvkv.js.map +1 -0
- package/lib/cjs/gherkin-5uyKpXXh.js +150 -0
- package/lib/cjs/gherkin-5uyKpXXh.js.map +1 -0
- package/lib/cjs/go-5XitXoIZ.js +167 -0
- package/lib/cjs/go-5XitXoIZ.js.map +1 -0
- package/lib/cjs/groovy-mz3pWMKN.js +233 -0
- package/lib/cjs/groovy-mz3pWMKN.js.map +1 -0
- package/lib/cjs/haskell-9KaSS7kb.js +242 -0
- package/lib/cjs/haskell-9KaSS7kb.js.map +1 -0
- package/lib/cjs/haxe-L8h6Pvni.js +494 -0
- package/lib/cjs/haxe-L8h6Pvni.js.map +1 -0
- package/lib/cjs/helper-OEW-2Vxr.js +9 -0
- package/lib/cjs/helper-OEW-2Vxr.js.map +1 -0
- package/lib/cjs/http-BFQQnRR-.js +92 -0
- package/lib/cjs/http-BFQQnRR-.js.map +1 -0
- package/lib/cjs/idl-29T-AzAy.js +277 -0
- package/lib/cjs/idl-29T-AzAy.js.map +1 -0
- package/lib/cjs/index-2oxl5Zo4.js +551 -0
- package/lib/cjs/index-2oxl5Zo4.js.map +1 -0
- package/lib/cjs/index-5PcT4iSf.js +107 -0
- package/lib/cjs/index-5PcT4iSf.js.map +1 -0
- package/lib/cjs/index-78P4PeZ9.js +361 -0
- package/lib/cjs/index-78P4PeZ9.js.map +1 -0
- package/lib/cjs/index-GEIgbcVc.js +1028 -0
- package/lib/cjs/index-GEIgbcVc.js.map +1 -0
- package/lib/cjs/index-GKolgvC5.js +505 -0
- package/lib/cjs/index-GKolgvC5.js.map +1 -0
- package/lib/cjs/index-JAqL0ybh.js +55 -0
- package/lib/cjs/index-JAqL0ybh.js.map +1 -0
- package/lib/cjs/index-LdEYPSZc.js +80 -0
- package/lib/cjs/index-LdEYPSZc.js.map +1 -0
- package/lib/cjs/index-Ne_pk53w.js +178 -0
- package/lib/cjs/index-Ne_pk53w.js.map +1 -0
- package/lib/cjs/index-O3vRXWIP.js +199 -0
- package/lib/cjs/index-O3vRXWIP.js.map +1 -0
- package/lib/cjs/index-OA_u95ey.js +531 -0
- package/lib/cjs/index-OA_u95ey.js.map +1 -0
- package/lib/cjs/index-OIQn1x0L.js +262 -0
- package/lib/cjs/index-OIQn1x0L.js.map +1 -0
- package/lib/cjs/index-OtaMLv5l.js +397 -0
- package/lib/cjs/index-OtaMLv5l.js.map +1 -0
- package/lib/cjs/index-PF7s7DOo.js +386 -0
- package/lib/cjs/index-PF7s7DOo.js.map +1 -0
- package/lib/cjs/index-SxWWV8XD.js +442 -0
- package/lib/cjs/index-SxWWV8XD.js.map +1 -0
- package/lib/cjs/index-TEjdwq--.js +2518 -0
- package/lib/cjs/index-TEjdwq--.js.map +1 -0
- package/lib/cjs/index-de3dfsQr.js +1044 -0
- package/lib/cjs/index-de3dfsQr.js.map +1 -0
- package/lib/cjs/index-fkT0ywfA.js +698 -0
- package/lib/cjs/index-fkT0ywfA.js.map +1 -0
- package/lib/cjs/index-i0_v2uVp.js +202 -0
- package/lib/cjs/index-i0_v2uVp.js.map +1 -0
- package/lib/cjs/index-kNI3S3lF.js +22477 -0
- package/lib/cjs/index-kNI3S3lF.js.map +1 -0
- package/lib/cjs/index-kvO8ReCY.js +1960 -0
- package/lib/cjs/index-kvO8ReCY.js.map +1 -0
- package/lib/cjs/index-llNS_EuP.js +25695 -0
- package/lib/cjs/index-llNS_EuP.js.map +1 -0
- package/lib/cjs/index-lrFGGa_l.js +404 -0
- package/lib/cjs/index-lrFGGa_l.js.map +1 -0
- package/lib/cjs/index-mJ47ZWO2.js +155 -0
- package/lib/cjs/index-mJ47ZWO2.js.map +1 -0
- package/lib/cjs/index-ortUqbAp.js +463 -0
- package/lib/cjs/index-ortUqbAp.js.map +1 -0
- package/lib/cjs/index-qRg5-QJH.js +160 -0
- package/lib/cjs/index-qRg5-QJH.js.map +1 -0
- package/lib/cjs/index-t_GA5F26.js +208 -0
- package/lib/cjs/index-t_GA5F26.js.map +1 -0
- package/lib/cjs/index-tbEq3xma.js +118 -0
- package/lib/cjs/index-tbEq3xma.js.map +1 -0
- package/lib/cjs/index-vlxA_KJ8.js +127 -0
- package/lib/cjs/index-vlxA_KJ8.js.map +1 -0
- package/lib/cjs/index-w9buMrFW.js +355 -0
- package/lib/cjs/index-w9buMrFW.js.map +1 -0
- package/lib/cjs/index-wXLifZgm.js +1877 -0
- package/lib/cjs/index-wXLifZgm.js.map +1 -0
- package/lib/cjs/index-xqKfEyRA.js +73 -0
- package/lib/cjs/index-xqKfEyRA.js.map +1 -0
- package/lib/cjs/index-z6pe2alg.js +20 -0
- package/lib/cjs/index-z6pe2alg.js.map +1 -0
- package/lib/cjs/index-zBr61zy6.js +773 -0
- package/lib/cjs/index-zBr61zy6.js.map +1 -0
- package/lib/cjs/index.js +19 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/javascript-5-BTydbD.js +928 -0
- package/lib/cjs/javascript-5-BTydbD.js.map +1 -0
- package/lib/cjs/jinja2-BWMz4gPk.js +174 -0
- package/lib/cjs/jinja2-BWMz4gPk.js.map +1 -0
- package/lib/cjs/julia-dtR9J3KZ.js +372 -0
- package/lib/cjs/julia-dtR9J3KZ.js.map +1 -0
- package/lib/cjs/livescript-YxT0INe3.js +262 -0
- package/lib/cjs/livescript-YxT0INe3.js.map +1 -0
- package/lib/cjs/lua-h7_AXjy9.js +140 -0
- package/lib/cjs/lua-h7_AXjy9.js.map +1 -0
- package/lib/cjs/mathematica-Zc57fOr3.js +156 -0
- package/lib/cjs/mathematica-Zc57fOr3.js.map +1 -0
- package/lib/cjs/mbox-ltKsKgJd.js +117 -0
- package/lib/cjs/mbox-ltKsKgJd.js.map +1 -0
- package/lib/cjs/meta-q8q9fHyr.js +14 -0
- package/lib/cjs/meta-q8q9fHyr.js.map +1 -0
- package/lib/cjs/mirc-xTLeWqmy.js +179 -0
- package/lib/cjs/mirc-xTLeWqmy.js.map +1 -0
- package/lib/cjs/mllike-xukl-Kjp.js +351 -0
- package/lib/cjs/mllike-xukl-Kjp.js.map +1 -0
- package/lib/cjs/modelica-LsXtAawk.js +195 -0
- package/lib/cjs/modelica-LsXtAawk.js.map +1 -0
- package/lib/cjs/mscgen-9HooYIVW.js +154 -0
- package/lib/cjs/mscgen-9HooYIVW.js.map +1 -0
- package/lib/cjs/mumps-VXqGp84f.js +132 -0
- package/lib/cjs/mumps-VXqGp84f.js.map +1 -0
- package/lib/cjs/nginx-UrubUbn1.js +166 -0
- package/lib/cjs/nginx-UrubUbn1.js.map +1 -0
- package/lib/cjs/nsis-c2AYwqyy.js +83 -0
- package/lib/cjs/nsis-c2AYwqyy.js.map +1 -0
- package/lib/cjs/ntriples-N1nwiheD.js +144 -0
- package/lib/cjs/ntriples-N1nwiheD.js.map +1 -0
- package/lib/cjs/octave-ElonStfZ.js +115 -0
- package/lib/cjs/octave-ElonStfZ.js.map +1 -0
- package/lib/cjs/oz-7VQTnCfu.js +238 -0
- package/lib/cjs/oz-7VQTnCfu.js.map +1 -0
- package/lib/cjs/pascal-yq2Cb88Q.js +127 -0
- package/lib/cjs/pascal-yq2Cb88Q.js.map +1 -0
- package/lib/cjs/perl-hJq4byS9.js +822 -0
- package/lib/cjs/perl-hJq4byS9.js.map +1 -0
- package/lib/cjs/pig-2syuOlAa.js +152 -0
- package/lib/cjs/pig-2syuOlAa.js.map +1 -0
- package/lib/cjs/powershell-NDwxuSDg.js +384 -0
- package/lib/cjs/powershell-NDwxuSDg.js.map +1 -0
- package/lib/cjs/properties-wacODxDJ.js +65 -0
- package/lib/cjs/properties-wacODxDJ.js.map +1 -0
- package/lib/cjs/protobuf-zVHZwskk.js +57 -0
- package/lib/cjs/protobuf-zVHZwskk.js.map +1 -0
- package/lib/cjs/puppet-koQikqO-.js +208 -0
- package/lib/cjs/puppet-koQikqO-.js.map +1 -0
- package/lib/cjs/python-P3UsKHbj.js +394 -0
- package/lib/cjs/python-P3UsKHbj.js.map +1 -0
- package/lib/cjs/q-Z_d2uXoA.js +126 -0
- package/lib/cjs/q-Z_d2uXoA.js.map +1 -0
- package/lib/cjs/r-J6Jl9z1i.js +177 -0
- package/lib/cjs/r-J6Jl9z1i.js.map +1 -0
- package/lib/cjs/rpm-6C0Omumu.js +93 -0
- package/lib/cjs/rpm-6C0Omumu.js.map +1 -0
- package/lib/cjs/ruby-POVyUmsb.js +290 -0
- package/lib/cjs/ruby-POVyUmsb.js.map +1 -0
- package/lib/cjs/sas-vDtpSmFr.js +271 -0
- package/lib/cjs/sas-vDtpSmFr.js.map +1 -0
- package/lib/cjs/schema-7d3meDfB.js +74 -0
- package/lib/cjs/schema-7d3meDfB.js.map +1 -0
- package/lib/cjs/scheme-5AA5BH7S.js +266 -0
- package/lib/cjs/scheme-5AA5BH7S.js.map +1 -0
- package/lib/cjs/shell-_ztDMiW6.js +148 -0
- package/lib/cjs/shell-_ztDMiW6.js.map +1 -0
- package/lib/cjs/sieve-R_vzlbvH.js +181 -0
- package/lib/cjs/sieve-R_vzlbvH.js.map +1 -0
- package/lib/cjs/simple-mode-ZwmNbV0h.js +138 -0
- package/lib/cjs/simple-mode-ZwmNbV0h.js.map +1 -0
- package/lib/cjs/smalltalk-dWLp5zN8.js +156 -0
- package/lib/cjs/smalltalk-dWLp5zN8.js.map +1 -0
- package/lib/cjs/solr-wSmvjKI8.js +83 -0
- package/lib/cjs/solr-wSmvjKI8.js.map +1 -0
- package/lib/cjs/sparql-GNU_0xKB.js +173 -0
- package/lib/cjs/sparql-GNU_0xKB.js.map +1 -0
- package/lib/cjs/spreadsheet-BiqYLk6M.js +101 -0
- package/lib/cjs/spreadsheet-BiqYLk6M.js.map +1 -0
- package/lib/cjs/sql-9GpHBPsC.js +497 -0
- package/lib/cjs/sql-9GpHBPsC.js.map +1 -0
- package/lib/cjs/stex-1V41CNLk.js +250 -0
- package/lib/cjs/stex-1V41CNLk.js.map +1 -0
- package/lib/cjs/stylus-H6hn9z_G.js +753 -0
- package/lib/cjs/stylus-H6hn9z_G.js.map +1 -0
- package/lib/cjs/swift-Xv5f8zgN.js +205 -0
- package/lib/cjs/swift-Xv5f8zgN.js.map +1 -0
- package/lib/cjs/tcl-LI-LOw_t.js +128 -0
- package/lib/cjs/tcl-LI-LOw_t.js.map +1 -0
- package/lib/cjs/textile-3NvRPUgg.js +444 -0
- package/lib/cjs/textile-3NvRPUgg.js.map +1 -0
- package/lib/cjs/tiddlywiki-PkMzy8_R.js +281 -0
- package/lib/cjs/tiddlywiki-PkMzy8_R.js.map +1 -0
- package/lib/cjs/tiki-Zk_GnEC8.js +292 -0
- package/lib/cjs/tiki-Zk_GnEC8.js.map +1 -0
- package/lib/cjs/toml-36gJ0YCq.js +78 -0
- package/lib/cjs/toml-36gJ0YCq.js.map +1 -0
- package/lib/cjs/tooltip-plugin-Mk9fRTxI.js +200 -0
- package/lib/cjs/tooltip-plugin-Mk9fRTxI.js.map +1 -0
- package/lib/cjs/troff-RLZ_o61o.js +67 -0
- package/lib/cjs/troff-RLZ_o61o.js.map +1 -0
- package/lib/cjs/ttcn-cfg-twaoJYvf.js +204 -0
- package/lib/cjs/ttcn-cfg-twaoJYvf.js.map +1 -0
- package/lib/cjs/ttcn-kGwvGb2v.js +260 -0
- package/lib/cjs/ttcn-kGwvGb2v.js.map +1 -0
- package/lib/cjs/turtle-nnevat7b.js +144 -0
- package/lib/cjs/turtle-nnevat7b.js.map +1 -0
- package/lib/cjs/vb-fO_I9s3s.js +252 -0
- package/lib/cjs/vb-fO_I9s3s.js.map +1 -0
- package/lib/cjs/vbscript-HXnn40y4.js +324 -0
- package/lib/cjs/vbscript-HXnn40y4.js.map +1 -0
- package/lib/cjs/velocity-Wn-ZfFzr.js +189 -0
- package/lib/cjs/velocity-Wn-ZfFzr.js.map +1 -0
- package/lib/cjs/verilog-y1ev34z6.js +569 -0
- package/lib/cjs/verilog-y1ev34z6.js.map +1 -0
- package/lib/cjs/vhdl-LF0oeXxc.js +177 -0
- package/lib/cjs/vhdl-LF0oeXxc.js.map +1 -0
- package/lib/cjs/webidl-6kI5KbeC.js +182 -0
- package/lib/cjs/webidl-6kI5KbeC.js.map +1 -0
- package/lib/cjs/xquery-BavrmwsO.js +428 -0
- package/lib/cjs/xquery-BavrmwsO.js.map +1 -0
- package/lib/cjs/yacas-1g_AbTrl.js +185 -0
- package/lib/cjs/yacas-1g_AbTrl.js.map +1 -0
- package/lib/cjs/z80-QYzKAAp7.js +106 -0
- package/lib/cjs/z80-QYzKAAp7.js.map +1 -0
- package/lib/esm/_view-JjtfhQ8k.js +25 -0
- package/lib/esm/_view-JjtfhQ8k.js.map +1 -0
- package/lib/esm/apl-eHQxyJFn.js +143 -0
- package/lib/esm/apl-eHQxyJFn.js.map +1 -0
- package/lib/esm/asciiarmor-Z-IGYCI4.js +57 -0
- package/lib/esm/asciiarmor-Z-IGYCI4.js.map +1 -0
- package/lib/esm/asn1-gF7x-q1y.js +193 -0
- package/lib/esm/asn1-gF7x-q1y.js.map +1 -0
- package/lib/esm/asterisk-swk20ftp.js +188 -0
- package/lib/esm/asterisk-swk20ftp.js.map +1 -0
- package/lib/esm/brainfuck-IFQdiQoR.js +71 -0
- package/lib/esm/brainfuck-IFQdiQoR.js.map +1 -0
- package/lib/esm/clike-q3hUF2Cx.js +1019 -0
- package/lib/esm/clike-q3hUF2Cx.js.map +1 -0
- package/lib/esm/clojure-I2Krbr2M.js +275 -0
- package/lib/esm/clojure-I2Krbr2M.js.map +1 -0
- package/lib/{icons-HYkfuR-O.js → esm/clsx-R7WFaNKL.js} +22 -20
- package/lib/esm/clsx-R7WFaNKL.js.map +1 -0
- package/lib/esm/cmake-ewwXLeuZ.js +82 -0
- package/lib/esm/cmake-ewwXLeuZ.js.map +1 -0
- package/lib/esm/cobol-fpN1nAnR.js +236 -0
- package/lib/esm/cobol-fpN1nAnR.js.map +1 -0
- package/lib/esm/coffeescript--eTFR-bH.js +330 -0
- package/lib/esm/coffeescript--eTFR-bH.js.map +1 -0
- package/lib/esm/commonlisp-XLSwVdLc.js +109 -0
- package/lib/esm/commonlisp-XLSwVdLc.js.map +1 -0
- package/lib/esm/composed-offset-position.browser.min-Tnm31e-m.js +1132 -0
- package/lib/esm/composed-offset-position.browser.min-Tnm31e-m.js.map +1 -0
- package/lib/esm/crystal-_r3Aa1_a.js +420 -0
- package/lib/esm/crystal-_r3Aa1_a.js.map +1 -0
- package/lib/esm/css-hgwYGMKZ.js +848 -0
- package/lib/esm/css-hgwYGMKZ.js.map +1 -0
- package/lib/esm/cypher-bbJyAa-4.js +123 -0
- package/lib/esm/cypher-bbJyAa-4.js.map +1 -0
- package/lib/esm/d-5MyulviS.js +206 -0
- package/lib/esm/d-5MyulviS.js.map +1 -0
- package/lib/esm/diff-neOaT_vk.js +31 -0
- package/lib/esm/diff-neOaT_vk.js.map +1 -0
- package/lib/{dockerfile-u6f6Vw2s.js → esm/dockerfile-lzx42-zz.js} +42 -36
- package/lib/esm/dockerfile-lzx42-zz.js.map +1 -0
- package/lib/esm/dtd-FmzPLZcQ.js +122 -0
- package/lib/esm/dtd-FmzPLZcQ.js.map +1 -0
- package/lib/esm/dylan-1HtRK4GO.js +338 -0
- package/lib/esm/dylan-1HtRK4GO.js.map +1 -0
- package/lib/esm/ebnf-Nz-pnLHy.js +152 -0
- package/lib/esm/ebnf-Nz-pnLHy.js.map +1 -0
- package/lib/esm/ecl-lQsZhQz0.js +191 -0
- package/lib/esm/ecl-lQsZhQz0.js.map +1 -0
- package/lib/esm/eiffel-R_HiEkhx.js +147 -0
- package/lib/esm/eiffel-R_HiEkhx.js.map +1 -0
- package/lib/esm/elm-KYv4VTDg.js +231 -0
- package/lib/esm/elm-KYv4VTDg.js.map +1 -0
- package/lib/esm/erlang-7YaHCBIe.js +582 -0
- package/lib/esm/erlang-7YaHCBIe.js.map +1 -0
- package/lib/esm/factor-opBU9aTK.js +66 -0
- package/lib/esm/factor-opBU9aTK.js.map +1 -0
- package/lib/esm/fcl-jm31FmFz.js +155 -0
- package/lib/esm/fcl-jm31FmFz.js.map +1 -0
- package/lib/esm/forth-5NKbjnWh.js +165 -0
- package/lib/esm/forth-5NKbjnWh.js.map +1 -0
- package/lib/esm/fortran-dXm_-cb9.js +173 -0
- package/lib/esm/fortran-dXm_-cb9.js.map +1 -0
- package/lib/esm/gas-nsYVnsy-.js +344 -0
- package/lib/esm/gas-nsYVnsy-.js.map +1 -0
- package/lib/esm/gherkin-fzKpjm3M.js +148 -0
- package/lib/esm/gherkin-fzKpjm3M.js.map +1 -0
- package/lib/esm/go-Pn1qh7yl.js +165 -0
- package/lib/esm/go-Pn1qh7yl.js.map +1 -0
- package/lib/esm/groovy-DZY-8keZ.js +231 -0
- package/lib/esm/groovy-DZY-8keZ.js.map +1 -0
- package/lib/esm/haskell-JGh2upDd.js +240 -0
- package/lib/esm/haskell-JGh2upDd.js.map +1 -0
- package/lib/esm/haxe-1hvVK-Fy.js +491 -0
- package/lib/esm/haxe-1hvVK-Fy.js.map +1 -0
- package/lib/esm/helper-iYEjPbOY.js +7 -0
- package/lib/esm/helper-iYEjPbOY.js.map +1 -0
- package/lib/esm/http-mY1M77wn.js +90 -0
- package/lib/esm/http-mY1M77wn.js.map +1 -0
- package/lib/esm/idl-dy_653wH.js +275 -0
- package/lib/esm/idl-dy_653wH.js.map +1 -0
- package/lib/esm/index-0khVa44f.js +77 -0
- package/lib/esm/index-0khVa44f.js.map +1 -0
- package/lib/esm/index-218OjRxG.js +549 -0
- package/lib/esm/index-218OjRxG.js.map +1 -0
- package/lib/{index-jZuF1Iix.js → esm/index-4QzlLVWs.js} +181 -128
- package/lib/esm/index-4QzlLVWs.js.map +1 -0
- package/lib/{index-P4-KqpEN.js → esm/index-4oMdufW4.js} +321 -239
- package/lib/esm/index-4oMdufW4.js.map +1 -0
- package/lib/esm/index-6P9Xk934.js +758 -0
- package/lib/esm/index-6P9Xk934.js.map +1 -0
- package/lib/{index-yrfirMbY.js → esm/index-7BVeXLQZ.js} +489 -514
- package/lib/esm/index-7BVeXLQZ.js.map +1 -0
- package/lib/{index-qMeqmZtK.js → esm/index-A9zdyi2L.js} +186 -149
- package/lib/esm/index-A9zdyi2L.js.map +1 -0
- package/lib/esm/index-AHPvVH4H.js +197 -0
- package/lib/esm/index-AHPvVH4H.js.map +1 -0
- package/lib/esm/index-Bg5GFp0g.js +384 -0
- package/lib/esm/index-Bg5GFp0g.js.map +1 -0
- package/lib/esm/index-DoEghZHy.js +2511 -0
- package/lib/esm/index-DoEghZHy.js.map +1 -0
- package/lib/esm/index-Grquo08f.js +152 -0
- package/lib/esm/index-Grquo08f.js.map +1 -0
- package/lib/esm/index-JkHHp3K-.js +22445 -0
- package/lib/esm/index-JkHHp3K-.js.map +1 -0
- package/lib/esm/index-Jvxff1vU.js +16 -0
- package/lib/esm/index-Jvxff1vU.js.map +1 -0
- package/lib/{index-DDSXiQ90.js → esm/index-L7VXk-jT.js} +645 -512
- package/lib/esm/index-L7VXk-jT.js.map +1 -0
- package/lib/esm/index-NmjiRA0M.js +1026 -0
- package/lib/esm/index-NmjiRA0M.js.map +1 -0
- package/lib/esm/index-PkBZpDL4.js +258 -0
- package/lib/esm/index-PkBZpDL4.js.map +1 -0
- package/lib/esm/index-TNMG6UrN.js +53 -0
- package/lib/esm/index-TNMG6UrN.js.map +1 -0
- package/lib/esm/index-U71v7KdA.js +400 -0
- package/lib/esm/index-U71v7KdA.js.map +1 -0
- package/lib/esm/index-U8q-F7hU.js +114 -0
- package/lib/esm/index-U8q-F7hU.js.map +1 -0
- package/lib/esm/index-UBeneu17.js +392 -0
- package/lib/esm/index-UBeneu17.js.map +1 -0
- package/lib/esm/index-VyZguCIt.js +69 -0
- package/lib/esm/index-VyZguCIt.js.map +1 -0
- package/lib/esm/index-a-SAfeeT.js +104 -0
- package/lib/esm/index-a-SAfeeT.js.map +1 -0
- package/lib/{index-KCykNSJx.js → esm/index-bVubJ6Rv.js} +405 -289
- package/lib/esm/index-bVubJ6Rv.js.map +1 -0
- package/lib/{index-kyD7hUif.js → esm/index-bsED907r.js} +143 -128
- package/lib/esm/index-bsED907r.js.map +1 -0
- package/lib/esm/index-h1arGiXv.js +1958 -0
- package/lib/esm/index-h1arGiXv.js.map +1 -0
- package/lib/esm/index-hQaRWeq1.js +350 -0
- package/lib/esm/index-hQaRWeq1.js.map +1 -0
- package/lib/esm/index-oMy83ynO.js +460 -0
- package/lib/esm/index-oMy83ynO.js.map +1 -0
- package/lib/esm/index-pHsvfB_I.js +503 -0
- package/lib/esm/index-pHsvfB_I.js.map +1 -0
- package/lib/esm/index-q-qE7-96.js +25651 -0
- package/lib/esm/index-q-qE7-96.js.map +1 -0
- package/lib/esm/index-rwcSpYkt.js +1037 -0
- package/lib/esm/index-rwcSpYkt.js.map +1 -0
- package/lib/esm/index-u8tWJbca.js +176 -0
- package/lib/esm/index-u8tWJbca.js.map +1 -0
- package/lib/{index-x6C6leag.js → esm/index-vwrMVELn.js} +110 -85
- package/lib/esm/index-vwrMVELn.js.map +1 -0
- package/lib/esm/index-x-zW6gKj.js +1872 -0
- package/lib/esm/index-x-zW6gKj.js.map +1 -0
- package/lib/esm/index.js +12 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/javascript-TMTz-YQH.js +923 -0
- package/lib/esm/javascript-TMTz-YQH.js.map +1 -0
- package/lib/esm/jinja2-sRIdliZK.js +172 -0
- package/lib/esm/jinja2-sRIdliZK.js.map +1 -0
- package/lib/esm/julia-fK0wmpGL.js +370 -0
- package/lib/esm/julia-fK0wmpGL.js.map +1 -0
- package/lib/esm/livescript-FRbAot3D.js +260 -0
- package/lib/esm/livescript-FRbAot3D.js.map +1 -0
- package/lib/esm/lua-t4FHEjvK.js +138 -0
- package/lib/esm/lua-t4FHEjvK.js.map +1 -0
- package/lib/esm/mathematica-sn_KGlYj.js +154 -0
- package/lib/esm/mathematica-sn_KGlYj.js.map +1 -0
- package/lib/esm/mbox-KvVC319E.js +115 -0
- package/lib/esm/mbox-KvVC319E.js.map +1 -0
- package/lib/esm/meta-3ZYGAGrY.js +12 -0
- package/lib/esm/meta-3ZYGAGrY.js.map +1 -0
- package/lib/esm/mirc-PzJ0zKSk.js +177 -0
- package/lib/esm/mirc-PzJ0zKSk.js.map +1 -0
- package/lib/esm/mllike-ZK411xkN.js +347 -0
- package/lib/esm/mllike-ZK411xkN.js.map +1 -0
- package/lib/esm/modelica-ZaHlRCbp.js +193 -0
- package/lib/esm/modelica-ZaHlRCbp.js.map +1 -0
- package/lib/esm/mscgen-Kkq4o4Zm.js +150 -0
- package/lib/esm/mscgen-Kkq4o4Zm.js.map +1 -0
- package/lib/esm/mumps-M8a87-rl.js +130 -0
- package/lib/esm/mumps-M8a87-rl.js.map +1 -0
- package/lib/esm/nginx-2LJIX23E.js +164 -0
- package/lib/esm/nginx-2LJIX23E.js.map +1 -0
- package/lib/esm/nsis-zvfFgMLi.js +81 -0
- package/lib/esm/nsis-zvfFgMLi.js.map +1 -0
- package/lib/esm/ntriples-tVkHy5bk.js +142 -0
- package/lib/esm/ntriples-tVkHy5bk.js.map +1 -0
- package/lib/esm/octave-mE4T5MF5.js +113 -0
- package/lib/esm/octave-mE4T5MF5.js.map +1 -0
- package/lib/esm/oz-q-LCsuVg.js +236 -0
- package/lib/esm/oz-q-LCsuVg.js.map +1 -0
- package/lib/esm/pascal-0IgUAn4C.js +125 -0
- package/lib/esm/pascal-0IgUAn4C.js.map +1 -0
- package/lib/esm/perl-AqxdYGac.js +820 -0
- package/lib/esm/perl-AqxdYGac.js.map +1 -0
- package/lib/esm/pig-ESM-IjQj.js +150 -0
- package/lib/esm/pig-ESM-IjQj.js.map +1 -0
- package/lib/esm/powershell-CLFP0L55.js +382 -0
- package/lib/esm/powershell-CLFP0L55.js.map +1 -0
- package/lib/esm/properties-oWHNzvb9.js +63 -0
- package/lib/esm/properties-oWHNzvb9.js.map +1 -0
- package/lib/esm/protobuf-c7eMmdcc.js +55 -0
- package/lib/esm/protobuf-c7eMmdcc.js.map +1 -0
- package/lib/esm/puppet-FjzvdRJr.js +206 -0
- package/lib/esm/puppet-FjzvdRJr.js.map +1 -0
- package/lib/esm/python-3Pv0tnvt.js +390 -0
- package/lib/esm/python-3Pv0tnvt.js.map +1 -0
- package/lib/esm/q-IImW8da6.js +124 -0
- package/lib/esm/q-IImW8da6.js.map +1 -0
- package/lib/esm/r-CnEkTvR0.js +175 -0
- package/lib/esm/r-CnEkTvR0.js.map +1 -0
- package/lib/esm/rpm-Q55-fEHj.js +90 -0
- package/lib/esm/rpm-Q55-fEHj.js.map +1 -0
- package/lib/esm/ruby-zhaGB3Kh.js +288 -0
- package/lib/esm/ruby-zhaGB3Kh.js.map +1 -0
- package/lib/esm/sas-Ur9jZIOV.js +269 -0
- package/lib/esm/sas-Ur9jZIOV.js.map +1 -0
- package/lib/esm/schema-hVsy-vme.js +71 -0
- package/lib/esm/schema-hVsy-vme.js.map +1 -0
- package/lib/esm/scheme-daT5-Rya.js +264 -0
- package/lib/esm/scheme-daT5-Rya.js.map +1 -0
- package/lib/esm/shell-cwFL0AYP.js +146 -0
- package/lib/esm/shell-cwFL0AYP.js.map +1 -0
- package/lib/esm/sieve-MlNXFFUq.js +179 -0
- package/lib/esm/sieve-MlNXFFUq.js.map +1 -0
- package/lib/esm/simple-mode-m1rsX7Gw.js +136 -0
- package/lib/esm/simple-mode-m1rsX7Gw.js.map +1 -0
- package/lib/esm/smalltalk-xrQICp9e.js +154 -0
- package/lib/esm/smalltalk-xrQICp9e.js.map +1 -0
- package/lib/esm/solr-PU3oPgQz.js +81 -0
- package/lib/esm/solr-PU3oPgQz.js.map +1 -0
- package/lib/esm/sparql--u8NRBii.js +171 -0
- package/lib/esm/sparql--u8NRBii.js.map +1 -0
- package/lib/esm/spreadsheet-QCp0LifX.js +99 -0
- package/lib/esm/spreadsheet-QCp0LifX.js.map +1 -0
- package/lib/esm/sql-dsGfl64h.js +482 -0
- package/lib/esm/sql-dsGfl64h.js.map +1 -0
- package/lib/esm/stex-WcLBzvkD.js +247 -0
- package/lib/esm/stex-WcLBzvkD.js.map +1 -0
- package/lib/esm/stylus--A5XAqOX.js +751 -0
- package/lib/esm/stylus--A5XAqOX.js.map +1 -0
- package/lib/esm/swift-qAm73i7G.js +203 -0
- package/lib/esm/swift-qAm73i7G.js.map +1 -0
- package/lib/esm/tcl-Kdc7qxc-.js +126 -0
- package/lib/esm/tcl-Kdc7qxc-.js.map +1 -0
- package/lib/esm/textile--sz8UrIz.js +442 -0
- package/lib/esm/textile--sz8UrIz.js.map +1 -0
- package/lib/esm/tiddlywiki-xNXTeBlQ.js +279 -0
- package/lib/esm/tiddlywiki-xNXTeBlQ.js.map +1 -0
- package/lib/esm/tiki-LCXjrNH3.js +290 -0
- package/lib/esm/tiki-LCXjrNH3.js.map +1 -0
- package/lib/esm/toml-Ac4tlBMn.js +76 -0
- package/lib/esm/toml-Ac4tlBMn.js.map +1 -0
- package/lib/esm/tooltip-plugin-vZefVSGL.js +194 -0
- package/lib/esm/tooltip-plugin-vZefVSGL.js.map +1 -0
- package/lib/esm/troff-LLW1x1Yz.js +65 -0
- package/lib/esm/troff-LLW1x1Yz.js.map +1 -0
- package/lib/esm/ttcn-ZYZ9FS3u.js +258 -0
- package/lib/esm/ttcn-ZYZ9FS3u.js.map +1 -0
- package/lib/esm/ttcn-cfg-qsvf3MfB.js +202 -0
- package/lib/esm/ttcn-cfg-qsvf3MfB.js.map +1 -0
- package/lib/esm/turtle-wq3TqOth.js +142 -0
- package/lib/esm/turtle-wq3TqOth.js.map +1 -0
- package/lib/esm/vb-86M_JuNP.js +250 -0
- package/lib/esm/vb-86M_JuNP.js.map +1 -0
- package/lib/esm/vbscript-GueAeVug.js +321 -0
- package/lib/esm/vbscript-GueAeVug.js.map +1 -0
- package/lib/esm/velocity-7PW9GXO2.js +187 -0
- package/lib/esm/velocity-7PW9GXO2.js.map +1 -0
- package/lib/esm/verilog-PXtXH14C.js +566 -0
- package/lib/esm/verilog-PXtXH14C.js.map +1 -0
- package/lib/esm/vhdl-I8eyK83X.js +175 -0
- package/lib/esm/vhdl-I8eyK83X.js.map +1 -0
- package/lib/esm/webidl-1f8ATJ66.js +180 -0
- package/lib/esm/webidl-1f8ATJ66.js.map +1 -0
- package/lib/esm/xquery-IYp28Wx6.js +426 -0
- package/lib/esm/xquery-IYp28Wx6.js.map +1 -0
- package/lib/esm/yacas-wkENB05f.js +183 -0
- package/lib/esm/yacas-wkENB05f.js.map +1 -0
- package/lib/esm/z80-GaXiLdiV.js +103 -0
- package/lib/esm/z80-GaXiLdiV.js.map +1 -0
- package/lib/theme/_internal/classic-common.css +256 -0
- package/lib/theme/classic/style.css +28 -0
- package/lib/theme/classic-dark/style.css +28 -0
- package/lib/theme/common/block-edit.css +118 -0
- package/lib/theme/common/code-mirror.css +177 -0
- package/lib/theme/common/cursor.css +13 -0
- package/lib/theme/common/image-block.css +362 -0
- package/lib/theme/common/link-tooltip.css +105 -0
- package/lib/theme/common/list-item.css +34 -0
- package/lib/theme/common/placeholder.css +7 -0
- package/lib/theme/common/prosemirror.css +1 -0
- package/lib/theme/common/style.css +9 -0
- package/lib/theme/common/toolbar.css +34 -0
- package/lib/{core → types/core}/crepe.d.ts +1 -3
- package/lib/types/core/crepe.d.ts.map +1 -0
- package/lib/types/core/index.d.ts +2 -0
- package/lib/types/core/index.d.ts.map +1 -0
- package/lib/types/core/slice.d.ts +5 -0
- package/lib/types/core/slice.d.ts.map +1 -0
- package/lib/types/feature/block-edit/handle/component.d.ts.map +1 -0
- package/lib/{feature → types/feature}/block-edit/handle/index.d.ts +2 -3
- package/lib/types/feature/block-edit/handle/index.d.ts.map +1 -0
- package/lib/types/feature/block-edit/index.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/component.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/config.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/icons.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/index.d.ts.map +1 -0
- package/lib/types/feature/code-mirror/index.d.ts +11 -0
- package/lib/types/feature/code-mirror/index.d.ts.map +1 -0
- package/lib/types/feature/cursor/index.d.ts +9 -0
- package/lib/types/feature/cursor/index.d.ts.map +1 -0
- package/lib/types/feature/image-block/index.d.ts.map +1 -0
- package/lib/{feature → types/feature}/index.d.ts +3 -1
- package/lib/types/feature/index.d.ts.map +1 -0
- package/lib/types/feature/link-tooltip/consts.d.ts.map +1 -0
- package/lib/types/feature/link-tooltip/index.d.ts.map +1 -0
- package/lib/types/feature/list-item/consts.d.ts.map +1 -0
- package/lib/types/feature/list-item/index.d.ts.map +1 -0
- package/lib/{feature → types/feature}/placeholder/index.d.ts +2 -1
- package/lib/types/feature/placeholder/index.d.ts.map +1 -0
- package/lib/{feature → types/feature}/shared.d.ts +1 -1
- package/lib/types/feature/shared.d.ts.map +1 -0
- package/lib/types/feature/toolbar/component.d.ts.map +1 -0
- package/lib/types/feature/toolbar/consts.d.ts.map +1 -0
- package/lib/types/feature/toolbar/index.d.ts.map +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/{utils → types/utils}/index.d.ts +1 -0
- package/lib/types/utils/index.d.ts.map +1 -0
- package/package.json +31 -23
- package/src/core/crepe.ts +2 -8
- package/src/core/index.ts +0 -3
- package/src/core/slice.ts +0 -33
- package/src/feature/block-edit/handle/component.ts +0 -1
- package/src/feature/block-edit/handle/index.ts +26 -19
- package/src/feature/block-edit/index.ts +0 -4
- package/src/feature/block-edit/menu/component.ts +18 -10
- package/src/feature/block-edit/menu/config.ts +0 -1
- package/src/feature/block-edit/menu/icons.ts +0 -1
- package/src/feature/block-edit/menu/index.ts +9 -13
- package/src/feature/code-mirror/index.ts +24 -32
- package/src/feature/cursor/index.ts +22 -0
- package/src/feature/image-block/index.ts +0 -4
- package/src/feature/index.ts +6 -5
- package/src/feature/link-tooltip/consts.ts +0 -1
- package/src/feature/link-tooltip/index.ts +0 -4
- package/src/feature/list-item/consts.ts +0 -1
- package/src/feature/list-item/index.ts +2 -6
- package/src/feature/placeholder/index.ts +1 -5
- package/src/feature/shared.ts +1 -2
- package/src/feature/toolbar/component.ts +0 -1
- package/src/feature/toolbar/consts.ts +0 -1
- package/src/feature/toolbar/index.ts +10 -16
- package/src/index.ts +0 -3
- package/src/theme/_internal/classic-common.css +219 -0
- package/src/theme/classic/style.css +2 -166
- package/src/theme/classic-dark/style.css +2 -171
- package/src/{feature/block-edit/style.css → theme/common/block-edit.css} +11 -1
- package/src/theme/common/code-mirror.css +176 -0
- package/src/theme/common/cursor.css +15 -0
- package/src/{feature/image-block/style.css → theme/common/image-block.css} +180 -16
- package/src/{feature/link-tooltip/style.css → theme/common/link-tooltip.css} +8 -0
- package/src/{feature/list-item/style.css → theme/common/list-item.css} +14 -3
- package/src/theme/common/prosemirror.css +1 -0
- package/src/theme/common/style.css +9 -0
- package/src/{feature/toolbar/style.css → theme/common/toolbar.css} +4 -0
- package/src/utils/index.ts +5 -1
- package/src/vite-env.d.ts +0 -1
- package/lib/apl-p0IPP13W.js +0 -76
- package/lib/asciiarmor-lJsBxlJJ.js +0 -34
- package/lib/asn1-Q9v1zIy5.js +0 -102
- package/lib/asterisk-foNkeTjy.js +0 -273
- package/lib/brainfuck-0XqyXpNS.js +0 -35
- package/lib/clike-ak6Z6Yhe.js +0 -639
- package/lib/clojure-iYO8U8Sg.js +0 -810
- package/lib/clsx-7d8NmkQq.js +0 -21
- package/lib/cmake-SVzjkxV_.js +0 -28
- package/lib/cobol-APHEnAOX.js +0 -74
- package/lib/coffeescript-KqQa0SYG.js +0 -182
- package/lib/commonlisp-bwqNqR5V.js +0 -79
- package/lib/core/crepe.d.ts.map +0 -1
- package/lib/core/index.d.ts +0 -3
- package/lib/core/index.d.ts.map +0 -1
- package/lib/core/slice.d.ts +0 -12
- package/lib/core/slice.d.ts.map +0 -1
- package/lib/crystal-BViWuDpA.js +0 -217
- package/lib/css-KHXHXfXg.js +0 -1572
- package/lib/cypher-XpTt4zQ3.js +0 -69
- package/lib/d-fLig6yqY.js +0 -139
- package/lib/diff-WoKGLpy6.js +0 -18
- package/lib/dtd-SIJRUW6K.js +0 -91
- package/lib/dylan-4HCLhpWP.js +0 -238
- package/lib/ebnf-h_0lged5.js +0 -77
- package/lib/ecl-Lf4FF0lf.js +0 -133
- package/lib/eiffel-qlw8KUyf.js +0 -112
- package/lib/elm-QRnB3zXs.js +0 -108
- package/lib/erlang-fyVKb7eK.js +0 -488
- package/lib/factor-BEeN4upY.js +0 -65
- package/lib/fcl-lRek3hEb.js +0 -106
- package/lib/feature/block-edit/handle/component.d.ts.map +0 -1
- package/lib/feature/block-edit/handle/index.d.ts.map +0 -1
- package/lib/feature/block-edit/index.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/component.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/config.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/icons.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/index.d.ts.map +0 -1
- package/lib/feature/code-mirror/index.d.ts.map +0 -1
- package/lib/feature/gap-cursor/index.d.ts.map +0 -1
- package/lib/feature/image-block/index.d.ts.map +0 -1
- package/lib/feature/index.d.ts.map +0 -1
- package/lib/feature/link-tooltip/consts.d.ts.map +0 -1
- package/lib/feature/link-tooltip/index.d.ts.map +0 -1
- package/lib/feature/list-item/consts.d.ts.map +0 -1
- package/lib/feature/list-item/index.d.ts +0 -3
- package/lib/feature/list-item/index.d.ts.map +0 -1
- package/lib/feature/placeholder/index.d.ts.map +0 -1
- package/lib/feature/shared.d.ts.map +0 -1
- package/lib/feature/toolbar/component.d.ts.map +0 -1
- package/lib/feature/toolbar/consts.d.ts.map +0 -1
- package/lib/feature/toolbar/index.d.ts +0 -3
- package/lib/feature/toolbar/index.d.ts.map +0 -1
- package/lib/forth-ua2bRd8T.js +0 -60
- package/lib/fortran-WnF7znuN.js +0 -443
- package/lib/gas-wowve1o7.js +0 -183
- package/lib/gherkin-m7GIChu3.js +0 -34
- package/lib/go-th443Dhb.js +0 -158
- package/lib/groovy-tR4RiZnc.js +0 -161
- package/lib/haskell-jxVBofv5.js +0 -375
- package/lib/haxe-kWPI2tq3.js +0 -390
- package/lib/hooks-82sqkbtE.js +0 -21
- package/lib/http-3GIFWUlG.js +0 -45
- package/lib/idl-PvpMZg-l.js +0 -947
- package/lib/index-BSv6537G.js +0 -364
- package/lib/index-BoI246Ti.js +0 -507
- package/lib/index-ECCvmC6D.js +0 -1301
- package/lib/index-EI1FcaSv.js +0 -928
- package/lib/index-ESoQGvsE.js +0 -288
- package/lib/index-GOH7H2i9.js +0 -81
- package/lib/index-GjFRg3RJ.js +0 -8
- package/lib/index-GzVCh3P9.js +0 -353
- package/lib/index-Ls2I7eOW.js +0 -20986
- package/lib/index-Qcks_HSE.js +0 -984
- package/lib/index-RKThEh9x.js +0 -517
- package/lib/index-UqF8o9eD.js +0 -19665
- package/lib/index-_VrGF4z-.js +0 -47
- package/lib/index-cteyPSwp.js +0 -83
- package/lib/index-f0pbmfJP.js +0 -64
- package/lib/index-gMYRN2wV.js +0 -107
- package/lib/index-oszOFbwW.js +0 -1041
- package/lib/index-pC1MPpe2.js +0 -1744
- package/lib/index-q3iu4cef.js +0 -78
- package/lib/index-rs4SJ8Gd.js +0 -253
- package/lib/index-w-CiezW1.js +0 -135
- package/lib/index-xHADmDT3.js +0 -12
- package/lib/index-xa7wUurf.js +0 -8
- package/lib/index-xjkoF_Bn.js +0 -317
- package/lib/index-zNGl_CdN.js +0 -8
- package/lib/index-zc51oyS8.js +0 -121
- package/lib/index.d.ts +0 -4
- package/lib/index.d.ts.map +0 -1
- package/lib/index.es.js +0 -7
- package/lib/javascript-8ZHqHagw.js +0 -758
- package/lib/jinja2-vsOFe0qD.js +0 -154
- package/lib/julia-dlp_pbN1.js +0 -241
- package/lib/livescript-Gf5R-LT6.js +0 -273
- package/lib/lua-c5Y_JsBp.js +0 -221
- package/lib/mathematica-iiGTGmUs.js +0 -35
- package/lib/mbox-ZJh86H8B.js +0 -78
- package/lib/meta-tAGyVRPE.js +0 -511
- package/lib/mirc-i0qkCa0y.js +0 -73
- package/lib/mllike-Dy551fZW.js +0 -275
- package/lib/modelica-n6tGqUT9.js +0 -94
- package/lib/mscgen-aKSbB7D9.js +0 -104
- package/lib/mumps-lNiKA6sp.js +0 -25
- package/lib/nginx--YmuCfDj.js +0 -93
- package/lib/nsis-zhS8iA09.js +0 -62
- package/lib/ntriples-E3jQl3MC.js +0 -79
- package/lib/octave-EQvkGIeG.js +0 -144
- package/lib/oz-W2cpqFf6.js +0 -152
- package/lib/pascal-lCh6ouNZ.js +0 -79
- package/lib/perl-PxEQBX0B.js +0 -915
- package/lib/pig-Y_bNcrzS.js +0 -56
- package/lib/powershell-GaQP-TZr.js +0 -249
- package/lib/properties-mbRyn54L.js +0 -26
- package/lib/prosemirror-noTDkx-k.js +0 -4
- package/lib/protobuf-8CJideyJ.js +0 -49
- package/lib/puppet-ABBaChNZ.js +0 -45
- package/lib/python-sKdHg3Ka.js +0 -321
- package/lib/q-_1yG40Nm.js +0 -89
- package/lib/r-Ziz56bHT.js +0 -108
- package/lib/rpm-ORjGOHaQ.js +0 -57
- package/lib/ruby-jlbYq0dT.js +0 -233
- package/lib/sas-2n7xeUuO.js +0 -107
- package/lib/schema-ywm7RaKF.js +0 -62
- package/lib/scheme-XCs-NPeU.js +0 -126
- package/lib/shell-0_1Um7Dq.js +0 -184
- package/lib/sieve-7uyJD1x1.js +0 -73
- package/lib/simple-mode--HIzBxba.js +0 -95
- package/lib/smalltalk-PEFzrlQ-.js +0 -48
- package/lib/solr-BLBaHahN.js +0 -41
- package/lib/sparql-4F9ZWf1b.js +0 -204
- package/lib/spreadsheet-SGSo6blj.js +0 -49
- package/lib/sql-tebLBzN0.js +0 -291
- package/lib/stex-SFJcFGOO.js +0 -130
- package/lib/stylus-rwwWYWFm.js +0 -256
- package/lib/swift-eorJ0tCv.js +0 -238
- package/lib/tcl-IwXMB8U4.js +0 -82
- package/lib/textile-ok2VyjwC.js +0 -299
- package/lib/theme/classic/index.d.ts +0 -3
- package/lib/theme/classic/index.d.ts.map +0 -1
- package/lib/theme/classic-dark/index.d.ts +0 -3
- package/lib/theme/classic-dark/index.d.ts.map +0 -1
- package/lib/theme/headless/index.d.ts +0 -3
- package/lib/theme/headless/index.d.ts.map +0 -1
- package/lib/theme/index.d.ts +0 -8
- package/lib/theme/index.d.ts.map +0 -1
- package/lib/theme/shared.d.ts +0 -3
- package/lib/theme/shared.d.ts.map +0 -1
- package/lib/tiddlywiki-DLhz8_pc.js +0 -156
- package/lib/tiki-DFAqFElY.js +0 -183
- package/lib/tippy.esm-4ny8MQOF.js +0 -1813
- package/lib/toml-ryxpTZEV.js +0 -49
- package/lib/tooltip-plugin-NpyG8C5u.js +0 -122
- package/lib/troff-ZzZyvNct.js +0 -36
- package/lib/ttcn-6gvkqqpW.js +0 -136
- package/lib/ttcn-cfg-oSu-Dq5C.js +0 -98
- package/lib/turtle-10ofr5au.js +0 -87
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/vb-a6n6fzrD.js +0 -74
- package/lib/vbscript-dgvo8jPt.js +0 -324
- package/lib/velocity-CBncCrwO.js +0 -97
- package/lib/verilog-KlcACt6C.js +0 -271
- package/lib/vhdl-NMd7Gf35.js +0 -117
- package/lib/webidl-z1UE5DN_.js +0 -160
- package/lib/xquery-hDt5jWTp.js +0 -431
- package/lib/yacas-ftgh_qwr.js +0 -74
- package/lib/z80-dA1PqWe1.js +0 -62
- package/src/feature/code-mirror/style.css +0 -159
- package/src/feature/gap-cursor/index.ts +0 -31
- package/src/theme/classic/index.ts +0 -12
- package/src/theme/classic-dark/index.ts +0 -12
- package/src/theme/headless/index.ts +0 -9
- package/src/theme/index.ts +0 -26
- package/src/theme/shared.ts +0 -4
- /package/lib/{feature → types/feature}/block-edit/handle/component.d.ts +0 -0
- /package/lib/{feature → types/feature}/block-edit/index.d.ts +0 -0
- /package/lib/{feature → types/feature}/block-edit/menu/component.d.ts +0 -0
- /package/lib/{feature → types/feature}/block-edit/menu/config.d.ts +0 -0
- /package/lib/{feature → types/feature}/block-edit/menu/icons.d.ts +0 -0
- /package/lib/{feature → types/feature}/block-edit/menu/index.d.ts +0 -0
- /package/lib/{feature/code-mirror → types/feature/image-block}/index.d.ts +0 -0
- /package/lib/{feature → types/feature}/link-tooltip/consts.d.ts +0 -0
- /package/lib/{feature/gap-cursor → types/feature/link-tooltip}/index.d.ts +0 -0
- /package/lib/{feature → types/feature}/list-item/consts.d.ts +0 -0
- /package/lib/{feature/image-block → types/feature/list-item}/index.d.ts +0 -0
- /package/lib/{feature → types/feature}/toolbar/component.d.ts +0 -0
- /package/lib/{feature → types/feature}/toolbar/consts.d.ts +0 -0
- /package/lib/{feature/link-tooltip → types/feature/toolbar}/index.d.ts +0 -0
- /package/src/{feature/placeholder/style.css → theme/common/placeholder.css} +0 -0
|
@@ -0,0 +1,1044 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-wXLifZgm.js');
|
|
4
|
+
var index$1 = require('./index-llNS_EuP.js');
|
|
5
|
+
var index$3 = require('./index-OtaMLv5l.js');
|
|
6
|
+
var index$2 = require('./index-fkT0ywfA.js');
|
|
7
|
+
require('atomico');
|
|
8
|
+
require('./clsx-7JLENl8W.js');
|
|
9
|
+
require('./meta-q8q9fHyr.js');
|
|
10
|
+
require('./index-kNI3S3lF.js');
|
|
11
|
+
require('@milkdown/prose/history');
|
|
12
|
+
require('@milkdown/prose/model');
|
|
13
|
+
require('@milkdown/prose/keymap');
|
|
14
|
+
require('@milkdown/prose/commands');
|
|
15
|
+
require('@milkdown/prose');
|
|
16
|
+
require('@milkdown/prose/state');
|
|
17
|
+
require('@milkdown/prose/inputrules');
|
|
18
|
+
require('@milkdown/prose/schema-list');
|
|
19
|
+
require('@milkdown/prose/view');
|
|
20
|
+
require('@milkdown/prose/transform');
|
|
21
|
+
require('./helper-OEW-2Vxr.js');
|
|
22
|
+
require('./composed-offset-position.browser.min-FwypoGc1.js');
|
|
23
|
+
require('./_view-TbSIR42F.js');
|
|
24
|
+
|
|
25
|
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
26
|
+
const scriptText = 54,
|
|
27
|
+
StartCloseScriptTag = 1,
|
|
28
|
+
styleText = 55,
|
|
29
|
+
StartCloseStyleTag = 2,
|
|
30
|
+
textareaText = 56,
|
|
31
|
+
StartCloseTextareaTag = 3,
|
|
32
|
+
EndTag = 4,
|
|
33
|
+
SelfClosingEndTag = 5,
|
|
34
|
+
StartTag = 6,
|
|
35
|
+
StartScriptTag = 7,
|
|
36
|
+
StartStyleTag = 8,
|
|
37
|
+
StartTextareaTag = 9,
|
|
38
|
+
StartSelfClosingTag = 10,
|
|
39
|
+
StartCloseTag = 11,
|
|
40
|
+
NoMatchStartCloseTag = 12,
|
|
41
|
+
MismatchedStartCloseTag = 13,
|
|
42
|
+
missingCloseTag = 57,
|
|
43
|
+
IncompleteCloseTag = 14,
|
|
44
|
+
commentContent$1 = 58,
|
|
45
|
+
Element = 20,
|
|
46
|
+
TagName = 22,
|
|
47
|
+
Attribute = 23,
|
|
48
|
+
AttributeName = 24,
|
|
49
|
+
AttributeValue = 26,
|
|
50
|
+
UnquotedAttributeValue = 27,
|
|
51
|
+
ScriptText = 28,
|
|
52
|
+
StyleText = 31,
|
|
53
|
+
TextareaText = 34,
|
|
54
|
+
OpenTag = 36,
|
|
55
|
+
CloseTag = 37,
|
|
56
|
+
Dialect_noMatch = 0,
|
|
57
|
+
Dialect_selfClosing = 1;
|
|
58
|
+
|
|
59
|
+
/* Hand-written tokenizers for HTML. */
|
|
60
|
+
|
|
61
|
+
const selfClosers$1 = {
|
|
62
|
+
area: true, base: true, br: true, col: true, command: true,
|
|
63
|
+
embed: true, frame: true, hr: true, img: true, input: true,
|
|
64
|
+
keygen: true, link: true, meta: true, param: true, source: true,
|
|
65
|
+
track: true, wbr: true, menuitem: true
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const implicitlyClosed = {
|
|
69
|
+
dd: true, li: true, optgroup: true, option: true, p: true,
|
|
70
|
+
rp: true, rt: true, tbody: true, td: true, tfoot: true,
|
|
71
|
+
th: true, tr: true
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const closeOnOpen = {
|
|
75
|
+
dd: {dd: true, dt: true},
|
|
76
|
+
dt: {dd: true, dt: true},
|
|
77
|
+
li: {li: true},
|
|
78
|
+
option: {option: true, optgroup: true},
|
|
79
|
+
optgroup: {optgroup: true},
|
|
80
|
+
p: {
|
|
81
|
+
address: true, article: true, aside: true, blockquote: true, dir: true,
|
|
82
|
+
div: true, dl: true, fieldset: true, footer: true, form: true,
|
|
83
|
+
h1: true, h2: true, h3: true, h4: true, h5: true, h6: true,
|
|
84
|
+
header: true, hgroup: true, hr: true, menu: true, nav: true, ol: true,
|
|
85
|
+
p: true, pre: true, section: true, table: true, ul: true
|
|
86
|
+
},
|
|
87
|
+
rp: {rp: true, rt: true},
|
|
88
|
+
rt: {rp: true, rt: true},
|
|
89
|
+
tbody: {tbody: true, tfoot: true},
|
|
90
|
+
td: {td: true, th: true},
|
|
91
|
+
tfoot: {tbody: true},
|
|
92
|
+
th: {td: true, th: true},
|
|
93
|
+
thead: {tbody: true, tfoot: true},
|
|
94
|
+
tr: {tr: true}
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
function nameChar(ch) {
|
|
98
|
+
return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function isSpace(ch) {
|
|
102
|
+
return ch == 9 || ch == 10 || ch == 13 || ch == 32
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
let cachedName = null, cachedInput = null, cachedPos = 0;
|
|
106
|
+
function tagNameAfter(input, offset) {
|
|
107
|
+
let pos = input.pos + offset;
|
|
108
|
+
if (cachedPos == pos && cachedInput == input) return cachedName
|
|
109
|
+
let next = input.peek(offset);
|
|
110
|
+
while (isSpace(next)) next = input.peek(++offset);
|
|
111
|
+
let name = "";
|
|
112
|
+
for (;;) {
|
|
113
|
+
if (!nameChar(next)) break
|
|
114
|
+
name += String.fromCharCode(next);
|
|
115
|
+
next = input.peek(++offset);
|
|
116
|
+
}
|
|
117
|
+
// Undefined to signal there's a <? or <!, null for just missing
|
|
118
|
+
cachedInput = input; cachedPos = pos;
|
|
119
|
+
return cachedName = name ? name.toLowerCase() : next == question || next == bang ? undefined : null
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const lessThan = 60, greaterThan = 62, slash = 47, question = 63, bang = 33, dash = 45;
|
|
123
|
+
|
|
124
|
+
function ElementContext(name, parent) {
|
|
125
|
+
this.name = name;
|
|
126
|
+
this.parent = parent;
|
|
127
|
+
this.hash = parent ? parent.hash : 0;
|
|
128
|
+
for (let i = 0; i < name.length; i++) this.hash += (this.hash << 4) + name.charCodeAt(i) + (name.charCodeAt(i) << 8);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const startTagTerms = [StartTag, StartSelfClosingTag, StartScriptTag, StartStyleTag, StartTextareaTag];
|
|
132
|
+
|
|
133
|
+
const elementContext = new index.ContextTracker({
|
|
134
|
+
start: null,
|
|
135
|
+
shift(context, term, stack, input) {
|
|
136
|
+
return startTagTerms.indexOf(term) > -1 ? new ElementContext(tagNameAfter(input, 1) || "", context) : context
|
|
137
|
+
},
|
|
138
|
+
reduce(context, term) {
|
|
139
|
+
return term == Element && context ? context.parent : context
|
|
140
|
+
},
|
|
141
|
+
reuse(context, node, stack, input) {
|
|
142
|
+
let type = node.type.id;
|
|
143
|
+
return type == StartTag || type == OpenTag
|
|
144
|
+
? new ElementContext(tagNameAfter(input, 1) || "", context) : context
|
|
145
|
+
},
|
|
146
|
+
hash(context) { return context ? context.hash : 0 },
|
|
147
|
+
strict: false
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
const tagStart = new index.ExternalTokenizer((input, stack) => {
|
|
151
|
+
if (input.next != lessThan) {
|
|
152
|
+
// End of file, close any open tags
|
|
153
|
+
if (input.next < 0 && stack.context) input.acceptToken(missingCloseTag);
|
|
154
|
+
return
|
|
155
|
+
}
|
|
156
|
+
input.advance();
|
|
157
|
+
let close = input.next == slash;
|
|
158
|
+
if (close) input.advance();
|
|
159
|
+
let name = tagNameAfter(input, 0);
|
|
160
|
+
if (name === undefined) return
|
|
161
|
+
if (!name) return input.acceptToken(close ? IncompleteCloseTag : StartTag)
|
|
162
|
+
|
|
163
|
+
let parent = stack.context ? stack.context.name : null;
|
|
164
|
+
if (close) {
|
|
165
|
+
if (name == parent) return input.acceptToken(StartCloseTag)
|
|
166
|
+
if (parent && implicitlyClosed[parent]) return input.acceptToken(missingCloseTag, -2)
|
|
167
|
+
if (stack.dialectEnabled(Dialect_noMatch)) return input.acceptToken(NoMatchStartCloseTag)
|
|
168
|
+
for (let cx = stack.context; cx; cx = cx.parent) if (cx.name == name) return
|
|
169
|
+
input.acceptToken(MismatchedStartCloseTag);
|
|
170
|
+
} else {
|
|
171
|
+
if (name == "script") return input.acceptToken(StartScriptTag)
|
|
172
|
+
if (name == "style") return input.acceptToken(StartStyleTag)
|
|
173
|
+
if (name == "textarea") return input.acceptToken(StartTextareaTag)
|
|
174
|
+
if (selfClosers$1.hasOwnProperty(name)) return input.acceptToken(StartSelfClosingTag)
|
|
175
|
+
if (parent && closeOnOpen[parent] && closeOnOpen[parent][name]) input.acceptToken(missingCloseTag, -1);
|
|
176
|
+
else input.acceptToken(StartTag);
|
|
177
|
+
}
|
|
178
|
+
}, {contextual: true});
|
|
179
|
+
|
|
180
|
+
const commentContent = new index.ExternalTokenizer(input => {
|
|
181
|
+
for (let dashes = 0, i = 0;; i++) {
|
|
182
|
+
if (input.next < 0) {
|
|
183
|
+
if (i) input.acceptToken(commentContent$1);
|
|
184
|
+
break
|
|
185
|
+
}
|
|
186
|
+
if (input.next == dash) {
|
|
187
|
+
dashes++;
|
|
188
|
+
} else if (input.next == greaterThan && dashes >= 2) {
|
|
189
|
+
if (i >= 3) input.acceptToken(commentContent$1, -2);
|
|
190
|
+
break
|
|
191
|
+
} else {
|
|
192
|
+
dashes = 0;
|
|
193
|
+
}
|
|
194
|
+
input.advance();
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
function inForeignElement(context) {
|
|
199
|
+
for (; context; context = context.parent)
|
|
200
|
+
if (context.name == "svg" || context.name == "math") return true
|
|
201
|
+
return false
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const endTag = new index.ExternalTokenizer((input, stack) => {
|
|
205
|
+
if (input.next == slash && input.peek(1) == greaterThan) {
|
|
206
|
+
let selfClosing = stack.dialectEnabled(Dialect_selfClosing) || inForeignElement(stack.context);
|
|
207
|
+
input.acceptToken(selfClosing ? SelfClosingEndTag : EndTag, 2);
|
|
208
|
+
} else if (input.next == greaterThan) {
|
|
209
|
+
input.acceptToken(EndTag, 1);
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
function contentTokenizer(tag, textToken, endToken) {
|
|
214
|
+
let lastState = 2 + tag.length;
|
|
215
|
+
return new index.ExternalTokenizer(input => {
|
|
216
|
+
// state means:
|
|
217
|
+
// - 0 nothing matched
|
|
218
|
+
// - 1 '<' matched
|
|
219
|
+
// - 2 '</' + possibly whitespace matched
|
|
220
|
+
// - 3-(1+tag.length) part of the tag matched
|
|
221
|
+
// - lastState whole tag + possibly whitespace matched
|
|
222
|
+
for (let state = 0, matchedLen = 0, i = 0;; i++) {
|
|
223
|
+
if (input.next < 0) {
|
|
224
|
+
if (i) input.acceptToken(textToken);
|
|
225
|
+
break
|
|
226
|
+
}
|
|
227
|
+
if (state == 0 && input.next == lessThan ||
|
|
228
|
+
state == 1 && input.next == slash ||
|
|
229
|
+
state >= 2 && state < lastState && input.next == tag.charCodeAt(state - 2)) {
|
|
230
|
+
state++;
|
|
231
|
+
matchedLen++;
|
|
232
|
+
} else if ((state == 2 || state == lastState) && isSpace(input.next)) {
|
|
233
|
+
matchedLen++;
|
|
234
|
+
} else if (state == lastState && input.next == greaterThan) {
|
|
235
|
+
if (i > matchedLen)
|
|
236
|
+
input.acceptToken(textToken, -matchedLen);
|
|
237
|
+
else
|
|
238
|
+
input.acceptToken(endToken, -(matchedLen - 2));
|
|
239
|
+
break
|
|
240
|
+
} else if ((input.next == 10 /* '\n' */ || input.next == 13 /* '\r' */) && i) {
|
|
241
|
+
input.acceptToken(textToken, 1);
|
|
242
|
+
break
|
|
243
|
+
} else {
|
|
244
|
+
state = matchedLen = 0;
|
|
245
|
+
}
|
|
246
|
+
input.advance();
|
|
247
|
+
}
|
|
248
|
+
})
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
const scriptTokens = contentTokenizer("script", scriptText, StartCloseScriptTag);
|
|
252
|
+
|
|
253
|
+
const styleTokens = contentTokenizer("style", styleText, StartCloseStyleTag);
|
|
254
|
+
|
|
255
|
+
const textareaTokens = contentTokenizer("textarea", textareaText, StartCloseTextareaTag);
|
|
256
|
+
|
|
257
|
+
const htmlHighlighting = index$1.styleTags({
|
|
258
|
+
"Text RawText": index$1.tags.content,
|
|
259
|
+
"StartTag StartCloseTag SelfClosingEndTag EndTag": index$1.tags.angleBracket,
|
|
260
|
+
TagName: index$1.tags.tagName,
|
|
261
|
+
"MismatchedCloseTag/TagName": [index$1.tags.tagName, index$1.tags.invalid],
|
|
262
|
+
AttributeName: index$1.tags.attributeName,
|
|
263
|
+
"AttributeValue UnquotedAttributeValue": index$1.tags.attributeValue,
|
|
264
|
+
Is: index$1.tags.definitionOperator,
|
|
265
|
+
"EntityReference CharacterReference": index$1.tags.character,
|
|
266
|
+
Comment: index$1.tags.blockComment,
|
|
267
|
+
ProcessingInst: index$1.tags.processingInstruction,
|
|
268
|
+
DoctypeDecl: index$1.tags.documentMeta
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
272
|
+
const parser = index.LRParser.deserialize({
|
|
273
|
+
version: 14,
|
|
274
|
+
states: ",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'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OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",
|
|
276
|
+
goto: "%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",
|
|
277
|
+
nodeNames: "⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",
|
|
278
|
+
maxTerm: 67,
|
|
279
|
+
context: elementContext,
|
|
280
|
+
nodeProps: [
|
|
281
|
+
["closedBy", -10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],
|
|
282
|
+
["openedBy", 4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],
|
|
283
|
+
["group", -9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]
|
|
284
|
+
],
|
|
285
|
+
propSources: [htmlHighlighting],
|
|
286
|
+
skippedNodes: [0],
|
|
287
|
+
repeatNodeCount: 9,
|
|
288
|
+
tokenData: "!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&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s(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",
|
|
289
|
+
tokenizers: [scriptTokens, styleTokens, textareaTokens, endTag, tagStart, commentContent, 0, 1, 2, 3, 4, 5],
|
|
290
|
+
topRules: {"Document":[0,15]},
|
|
291
|
+
dialects: {noMatch: 0, selfClosing: 485},
|
|
292
|
+
tokenPrec: 487
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
function getAttrs(openTag, input) {
|
|
296
|
+
let attrs = Object.create(null);
|
|
297
|
+
for (let att of openTag.getChildren(Attribute)) {
|
|
298
|
+
let name = att.getChild(AttributeName), value = att.getChild(AttributeValue) || att.getChild(UnquotedAttributeValue);
|
|
299
|
+
if (name) attrs[input.read(name.from, name.to)] =
|
|
300
|
+
!value ? "" : value.type.id == AttributeValue ? input.read(value.from + 1, value.to - 1) : input.read(value.from, value.to);
|
|
301
|
+
}
|
|
302
|
+
return attrs
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function findTagName(openTag, input) {
|
|
306
|
+
let tagNameNode = openTag.getChild(TagName);
|
|
307
|
+
return tagNameNode ? input.read(tagNameNode.from, tagNameNode.to) : " "
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
function maybeNest(node, input, tags) {
|
|
311
|
+
let attrs;
|
|
312
|
+
for (let tag of tags) {
|
|
313
|
+
if (!tag.attrs || tag.attrs(attrs || (attrs = getAttrs(node.node.parent.firstChild, input))))
|
|
314
|
+
return {parser: tag.parser}
|
|
315
|
+
}
|
|
316
|
+
return null
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// tags?: {
|
|
320
|
+
// tag: string,
|
|
321
|
+
// attrs?: ({[attr: string]: string}) => boolean,
|
|
322
|
+
// parser: Parser
|
|
323
|
+
// }[]
|
|
324
|
+
// attributes?: {
|
|
325
|
+
// name: string,
|
|
326
|
+
// tagName?: string,
|
|
327
|
+
// parser: Parser
|
|
328
|
+
// }[]
|
|
329
|
+
|
|
330
|
+
function configureNesting(tags = [], attributes = []) {
|
|
331
|
+
let script = [], style = [], textarea = [], other = [];
|
|
332
|
+
for (let tag of tags) {
|
|
333
|
+
let array = tag.tag == "script" ? script : tag.tag == "style" ? style : tag.tag == "textarea" ? textarea : other;
|
|
334
|
+
array.push(tag);
|
|
335
|
+
}
|
|
336
|
+
let attrs = attributes.length ? Object.create(null) : null;
|
|
337
|
+
for (let attr of attributes) (attrs[attr.name] || (attrs[attr.name] = [])).push(attr);
|
|
338
|
+
|
|
339
|
+
return index$1.parseMixed((node, input) => {
|
|
340
|
+
let id = node.type.id;
|
|
341
|
+
if (id == ScriptText) return maybeNest(node, input, script)
|
|
342
|
+
if (id == StyleText) return maybeNest(node, input, style)
|
|
343
|
+
if (id == TextareaText) return maybeNest(node, input, textarea)
|
|
344
|
+
|
|
345
|
+
if (id == Element && other.length) {
|
|
346
|
+
let n = node.node, open = n.firstChild, tagName = open && findTagName(open, input), attrs;
|
|
347
|
+
if (tagName) for (let tag of other) {
|
|
348
|
+
if (tag.tag == tagName && (!tag.attrs || tag.attrs(attrs || (attrs = getAttrs(n, input))))) {
|
|
349
|
+
let close = n.lastChild;
|
|
350
|
+
let to = close.type.id == CloseTag ? close.from : n.to;
|
|
351
|
+
if (to > open.to)
|
|
352
|
+
return {parser: tag.parser, overlay: [{from: open.to, to}]}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
if (attrs && id == Attribute) {
|
|
358
|
+
let n = node.node, nameNode;
|
|
359
|
+
if (nameNode = n.firstChild) {
|
|
360
|
+
let matches = attrs[input.read(nameNode.from, nameNode.to)];
|
|
361
|
+
if (matches) for (let attr of matches) {
|
|
362
|
+
if (attr.tagName && attr.tagName != findTagName(n.parent, input)) continue
|
|
363
|
+
let value = n.lastChild;
|
|
364
|
+
if (value.type.id == AttributeValue) {
|
|
365
|
+
let from = value.from + 1;
|
|
366
|
+
let last = value.lastChild, to = value.to - (last && last.isError ? 0 : 1);
|
|
367
|
+
if (to > from) return {parser: attr.parser, overlay: [{from, to}]}
|
|
368
|
+
} else if (value.type.id == UnquotedAttributeValue) {
|
|
369
|
+
return {parser: attr.parser, overlay: [{from: value.from, to: value.to}]}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return null
|
|
375
|
+
})
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
const Targets = ["_blank", "_self", "_top", "_parent"];
|
|
379
|
+
const Charsets = ["ascii", "utf-8", "utf-16", "latin1", "latin1"];
|
|
380
|
+
const Methods = ["get", "post", "put", "delete"];
|
|
381
|
+
const Encs = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"];
|
|
382
|
+
const Bool = ["true", "false"];
|
|
383
|
+
const S = {}; // Empty tag spec
|
|
384
|
+
const Tags = {
|
|
385
|
+
a: {
|
|
386
|
+
attrs: {
|
|
387
|
+
href: null, ping: null, type: null,
|
|
388
|
+
media: null,
|
|
389
|
+
target: Targets,
|
|
390
|
+
hreflang: null
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
abbr: S,
|
|
394
|
+
address: S,
|
|
395
|
+
area: {
|
|
396
|
+
attrs: {
|
|
397
|
+
alt: null, coords: null, href: null, target: null, ping: null,
|
|
398
|
+
media: null, hreflang: null, type: null,
|
|
399
|
+
shape: ["default", "rect", "circle", "poly"]
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
article: S,
|
|
403
|
+
aside: S,
|
|
404
|
+
audio: {
|
|
405
|
+
attrs: {
|
|
406
|
+
src: null, mediagroup: null,
|
|
407
|
+
crossorigin: ["anonymous", "use-credentials"],
|
|
408
|
+
preload: ["none", "metadata", "auto"],
|
|
409
|
+
autoplay: ["autoplay"],
|
|
410
|
+
loop: ["loop"],
|
|
411
|
+
controls: ["controls"]
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
b: S,
|
|
415
|
+
base: { attrs: { href: null, target: Targets } },
|
|
416
|
+
bdi: S,
|
|
417
|
+
bdo: S,
|
|
418
|
+
blockquote: { attrs: { cite: null } },
|
|
419
|
+
body: S,
|
|
420
|
+
br: S,
|
|
421
|
+
button: {
|
|
422
|
+
attrs: {
|
|
423
|
+
form: null, formaction: null, name: null, value: null,
|
|
424
|
+
autofocus: ["autofocus"],
|
|
425
|
+
disabled: ["autofocus"],
|
|
426
|
+
formenctype: Encs,
|
|
427
|
+
formmethod: Methods,
|
|
428
|
+
formnovalidate: ["novalidate"],
|
|
429
|
+
formtarget: Targets,
|
|
430
|
+
type: ["submit", "reset", "button"]
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
canvas: { attrs: { width: null, height: null } },
|
|
434
|
+
caption: S,
|
|
435
|
+
center: S,
|
|
436
|
+
cite: S,
|
|
437
|
+
code: S,
|
|
438
|
+
col: { attrs: { span: null } },
|
|
439
|
+
colgroup: { attrs: { span: null } },
|
|
440
|
+
command: {
|
|
441
|
+
attrs: {
|
|
442
|
+
type: ["command", "checkbox", "radio"],
|
|
443
|
+
label: null, icon: null, radiogroup: null, command: null, title: null,
|
|
444
|
+
disabled: ["disabled"],
|
|
445
|
+
checked: ["checked"]
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
data: { attrs: { value: null } },
|
|
449
|
+
datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
|
|
450
|
+
datalist: { attrs: { data: null } },
|
|
451
|
+
dd: S,
|
|
452
|
+
del: { attrs: { cite: null, datetime: null } },
|
|
453
|
+
details: { attrs: { open: ["open"] } },
|
|
454
|
+
dfn: S,
|
|
455
|
+
div: S,
|
|
456
|
+
dl: S,
|
|
457
|
+
dt: S,
|
|
458
|
+
em: S,
|
|
459
|
+
embed: { attrs: { src: null, type: null, width: null, height: null } },
|
|
460
|
+
eventsource: { attrs: { src: null } },
|
|
461
|
+
fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
|
|
462
|
+
figcaption: S,
|
|
463
|
+
figure: S,
|
|
464
|
+
footer: S,
|
|
465
|
+
form: {
|
|
466
|
+
attrs: {
|
|
467
|
+
action: null, name: null,
|
|
468
|
+
"accept-charset": Charsets,
|
|
469
|
+
autocomplete: ["on", "off"],
|
|
470
|
+
enctype: Encs,
|
|
471
|
+
method: Methods,
|
|
472
|
+
novalidate: ["novalidate"],
|
|
473
|
+
target: Targets
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
h1: S, h2: S, h3: S, h4: S, h5: S, h6: S,
|
|
477
|
+
head: {
|
|
478
|
+
children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
|
|
479
|
+
},
|
|
480
|
+
header: S,
|
|
481
|
+
hgroup: S,
|
|
482
|
+
hr: S,
|
|
483
|
+
html: {
|
|
484
|
+
attrs: { manifest: null }
|
|
485
|
+
},
|
|
486
|
+
i: S,
|
|
487
|
+
iframe: {
|
|
488
|
+
attrs: {
|
|
489
|
+
src: null, srcdoc: null, name: null, width: null, height: null,
|
|
490
|
+
sandbox: ["allow-top-navigation", "allow-same-origin", "allow-forms", "allow-scripts"],
|
|
491
|
+
seamless: ["seamless"]
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
img: {
|
|
495
|
+
attrs: {
|
|
496
|
+
alt: null, src: null, ismap: null, usemap: null, width: null, height: null,
|
|
497
|
+
crossorigin: ["anonymous", "use-credentials"]
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
input: {
|
|
501
|
+
attrs: {
|
|
502
|
+
alt: null, dirname: null, form: null, formaction: null,
|
|
503
|
+
height: null, list: null, max: null, maxlength: null, min: null,
|
|
504
|
+
name: null, pattern: null, placeholder: null, size: null, src: null,
|
|
505
|
+
step: null, value: null, width: null,
|
|
506
|
+
accept: ["audio/*", "video/*", "image/*"],
|
|
507
|
+
autocomplete: ["on", "off"],
|
|
508
|
+
autofocus: ["autofocus"],
|
|
509
|
+
checked: ["checked"],
|
|
510
|
+
disabled: ["disabled"],
|
|
511
|
+
formenctype: Encs,
|
|
512
|
+
formmethod: Methods,
|
|
513
|
+
formnovalidate: ["novalidate"],
|
|
514
|
+
formtarget: Targets,
|
|
515
|
+
multiple: ["multiple"],
|
|
516
|
+
readonly: ["readonly"],
|
|
517
|
+
required: ["required"],
|
|
518
|
+
type: ["hidden", "text", "search", "tel", "url", "email", "password", "datetime", "date", "month",
|
|
519
|
+
"week", "time", "datetime-local", "number", "range", "color", "checkbox", "radio",
|
|
520
|
+
"file", "submit", "image", "reset", "button"]
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
ins: { attrs: { cite: null, datetime: null } },
|
|
524
|
+
kbd: S,
|
|
525
|
+
keygen: {
|
|
526
|
+
attrs: {
|
|
527
|
+
challenge: null, form: null, name: null,
|
|
528
|
+
autofocus: ["autofocus"],
|
|
529
|
+
disabled: ["disabled"],
|
|
530
|
+
keytype: ["RSA"]
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
label: { attrs: { for: null, form: null } },
|
|
534
|
+
legend: S,
|
|
535
|
+
li: { attrs: { value: null } },
|
|
536
|
+
link: {
|
|
537
|
+
attrs: {
|
|
538
|
+
href: null, type: null,
|
|
539
|
+
hreflang: null,
|
|
540
|
+
media: null,
|
|
541
|
+
sizes: ["all", "16x16", "16x16 32x32", "16x16 32x32 64x64"]
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
map: { attrs: { name: null } },
|
|
545
|
+
mark: S,
|
|
546
|
+
menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
|
|
547
|
+
meta: {
|
|
548
|
+
attrs: {
|
|
549
|
+
content: null,
|
|
550
|
+
charset: Charsets,
|
|
551
|
+
name: ["viewport", "application-name", "author", "description", "generator", "keywords"],
|
|
552
|
+
"http-equiv": ["content-language", "content-type", "default-style", "refresh"]
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
|
|
556
|
+
nav: S,
|
|
557
|
+
noscript: S,
|
|
558
|
+
object: {
|
|
559
|
+
attrs: {
|
|
560
|
+
data: null, type: null, name: null, usemap: null, form: null, width: null, height: null,
|
|
561
|
+
typemustmatch: ["typemustmatch"]
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
ol: { attrs: { reversed: ["reversed"], start: null, type: ["1", "a", "A", "i", "I"] },
|
|
565
|
+
children: ["li", "script", "template", "ul", "ol"] },
|
|
566
|
+
optgroup: { attrs: { disabled: ["disabled"], label: null } },
|
|
567
|
+
option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
|
|
568
|
+
output: { attrs: { for: null, form: null, name: null } },
|
|
569
|
+
p: S,
|
|
570
|
+
param: { attrs: { name: null, value: null } },
|
|
571
|
+
pre: S,
|
|
572
|
+
progress: { attrs: { value: null, max: null } },
|
|
573
|
+
q: { attrs: { cite: null } },
|
|
574
|
+
rp: S,
|
|
575
|
+
rt: S,
|
|
576
|
+
ruby: S,
|
|
577
|
+
samp: S,
|
|
578
|
+
script: {
|
|
579
|
+
attrs: {
|
|
580
|
+
type: ["text/javascript"],
|
|
581
|
+
src: null,
|
|
582
|
+
async: ["async"],
|
|
583
|
+
defer: ["defer"],
|
|
584
|
+
charset: Charsets
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
section: S,
|
|
588
|
+
select: {
|
|
589
|
+
attrs: {
|
|
590
|
+
form: null, name: null, size: null,
|
|
591
|
+
autofocus: ["autofocus"],
|
|
592
|
+
disabled: ["disabled"],
|
|
593
|
+
multiple: ["multiple"]
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
slot: { attrs: { name: null } },
|
|
597
|
+
small: S,
|
|
598
|
+
source: { attrs: { src: null, type: null, media: null } },
|
|
599
|
+
span: S,
|
|
600
|
+
strong: S,
|
|
601
|
+
style: {
|
|
602
|
+
attrs: {
|
|
603
|
+
type: ["text/css"],
|
|
604
|
+
media: null,
|
|
605
|
+
scoped: null
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
sub: S,
|
|
609
|
+
summary: S,
|
|
610
|
+
sup: S,
|
|
611
|
+
table: S,
|
|
612
|
+
tbody: S,
|
|
613
|
+
td: { attrs: { colspan: null, rowspan: null, headers: null } },
|
|
614
|
+
template: S,
|
|
615
|
+
textarea: {
|
|
616
|
+
attrs: {
|
|
617
|
+
dirname: null, form: null, maxlength: null, name: null, placeholder: null,
|
|
618
|
+
rows: null, cols: null,
|
|
619
|
+
autofocus: ["autofocus"],
|
|
620
|
+
disabled: ["disabled"],
|
|
621
|
+
readonly: ["readonly"],
|
|
622
|
+
required: ["required"],
|
|
623
|
+
wrap: ["soft", "hard"]
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
tfoot: S,
|
|
627
|
+
th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
|
|
628
|
+
thead: S,
|
|
629
|
+
time: { attrs: { datetime: null } },
|
|
630
|
+
title: S,
|
|
631
|
+
tr: S,
|
|
632
|
+
track: {
|
|
633
|
+
attrs: {
|
|
634
|
+
src: null, label: null, default: null,
|
|
635
|
+
kind: ["subtitles", "captions", "descriptions", "chapters", "metadata"],
|
|
636
|
+
srclang: null
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
ul: { children: ["li", "script", "template", "ul", "ol"] },
|
|
640
|
+
var: S,
|
|
641
|
+
video: {
|
|
642
|
+
attrs: {
|
|
643
|
+
src: null, poster: null, width: null, height: null,
|
|
644
|
+
crossorigin: ["anonymous", "use-credentials"],
|
|
645
|
+
preload: ["auto", "metadata", "none"],
|
|
646
|
+
autoplay: ["autoplay"],
|
|
647
|
+
mediagroup: ["movie"],
|
|
648
|
+
muted: ["muted"],
|
|
649
|
+
controls: ["controls"]
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
wbr: S
|
|
653
|
+
};
|
|
654
|
+
const GlobalAttrs = {
|
|
655
|
+
accesskey: null,
|
|
656
|
+
class: null,
|
|
657
|
+
contenteditable: Bool,
|
|
658
|
+
contextmenu: null,
|
|
659
|
+
dir: ["ltr", "rtl", "auto"],
|
|
660
|
+
draggable: ["true", "false", "auto"],
|
|
661
|
+
dropzone: ["copy", "move", "link", "string:", "file:"],
|
|
662
|
+
hidden: ["hidden"],
|
|
663
|
+
id: null,
|
|
664
|
+
inert: ["inert"],
|
|
665
|
+
itemid: null,
|
|
666
|
+
itemprop: null,
|
|
667
|
+
itemref: null,
|
|
668
|
+
itemscope: ["itemscope"],
|
|
669
|
+
itemtype: null,
|
|
670
|
+
lang: ["ar", "bn", "de", "en-GB", "en-US", "es", "fr", "hi", "id", "ja", "pa", "pt", "ru", "tr", "zh"],
|
|
671
|
+
spellcheck: Bool,
|
|
672
|
+
autocorrect: Bool,
|
|
673
|
+
autocapitalize: Bool,
|
|
674
|
+
style: null,
|
|
675
|
+
tabindex: null,
|
|
676
|
+
title: null,
|
|
677
|
+
translate: ["yes", "no"],
|
|
678
|
+
rel: ["stylesheet", "alternate", "author", "bookmark", "help", "license", "next", "nofollow", "noreferrer", "prefetch", "prev", "search", "tag"],
|
|
679
|
+
role: /*@__PURE__*/"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
|
|
680
|
+
"aria-activedescendant": null,
|
|
681
|
+
"aria-atomic": Bool,
|
|
682
|
+
"aria-autocomplete": ["inline", "list", "both", "none"],
|
|
683
|
+
"aria-busy": Bool,
|
|
684
|
+
"aria-checked": ["true", "false", "mixed", "undefined"],
|
|
685
|
+
"aria-controls": null,
|
|
686
|
+
"aria-describedby": null,
|
|
687
|
+
"aria-disabled": Bool,
|
|
688
|
+
"aria-dropeffect": null,
|
|
689
|
+
"aria-expanded": ["true", "false", "undefined"],
|
|
690
|
+
"aria-flowto": null,
|
|
691
|
+
"aria-grabbed": ["true", "false", "undefined"],
|
|
692
|
+
"aria-haspopup": Bool,
|
|
693
|
+
"aria-hidden": Bool,
|
|
694
|
+
"aria-invalid": ["true", "false", "grammar", "spelling"],
|
|
695
|
+
"aria-label": null,
|
|
696
|
+
"aria-labelledby": null,
|
|
697
|
+
"aria-level": null,
|
|
698
|
+
"aria-live": ["off", "polite", "assertive"],
|
|
699
|
+
"aria-multiline": Bool,
|
|
700
|
+
"aria-multiselectable": Bool,
|
|
701
|
+
"aria-owns": null,
|
|
702
|
+
"aria-posinset": null,
|
|
703
|
+
"aria-pressed": ["true", "false", "mixed", "undefined"],
|
|
704
|
+
"aria-readonly": Bool,
|
|
705
|
+
"aria-relevant": null,
|
|
706
|
+
"aria-required": Bool,
|
|
707
|
+
"aria-selected": ["true", "false", "undefined"],
|
|
708
|
+
"aria-setsize": null,
|
|
709
|
+
"aria-sort": ["ascending", "descending", "none", "other"],
|
|
710
|
+
"aria-valuemax": null,
|
|
711
|
+
"aria-valuemin": null,
|
|
712
|
+
"aria-valuenow": null,
|
|
713
|
+
"aria-valuetext": null
|
|
714
|
+
};
|
|
715
|
+
const eventAttributes = /*@__PURE__*/("beforeunload copy cut dragstart dragover dragleave dragenter dragend " +
|
|
716
|
+
"drag paste focus blur change click load mousedown mouseenter mouseleave " +
|
|
717
|
+
"mouseup keydown keyup resize scroll unload").split(" ").map(n => "on" + n);
|
|
718
|
+
for (let a of eventAttributes)
|
|
719
|
+
GlobalAttrs[a] = null;
|
|
720
|
+
class Schema {
|
|
721
|
+
constructor(extraTags, extraAttrs) {
|
|
722
|
+
this.tags = Object.assign(Object.assign({}, Tags), extraTags);
|
|
723
|
+
this.globalAttrs = Object.assign(Object.assign({}, GlobalAttrs), extraAttrs);
|
|
724
|
+
this.allTags = Object.keys(this.tags);
|
|
725
|
+
this.globalAttrNames = Object.keys(this.globalAttrs);
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
Schema.default = /*@__PURE__*/new Schema;
|
|
729
|
+
function elementName(doc, tree, max = doc.length) {
|
|
730
|
+
if (!tree)
|
|
731
|
+
return "";
|
|
732
|
+
let tag = tree.firstChild;
|
|
733
|
+
let name = tag && tag.getChild("TagName");
|
|
734
|
+
return name ? doc.sliceString(name.from, Math.min(name.to, max)) : "";
|
|
735
|
+
}
|
|
736
|
+
function findParentElement(tree, skip = false) {
|
|
737
|
+
for (; tree; tree = tree.parent)
|
|
738
|
+
if (tree.name == "Element") {
|
|
739
|
+
if (skip)
|
|
740
|
+
skip = false;
|
|
741
|
+
else
|
|
742
|
+
return tree;
|
|
743
|
+
}
|
|
744
|
+
return null;
|
|
745
|
+
}
|
|
746
|
+
function allowedChildren(doc, tree, schema) {
|
|
747
|
+
let parentInfo = schema.tags[elementName(doc, findParentElement(tree))];
|
|
748
|
+
return (parentInfo === null || parentInfo === void 0 ? void 0 : parentInfo.children) || schema.allTags;
|
|
749
|
+
}
|
|
750
|
+
function openTags(doc, tree) {
|
|
751
|
+
let open = [];
|
|
752
|
+
for (let parent = findParentElement(tree); parent && !parent.type.isTop; parent = findParentElement(parent.parent)) {
|
|
753
|
+
let tagName = elementName(doc, parent);
|
|
754
|
+
if (tagName && parent.lastChild.name == "CloseTag")
|
|
755
|
+
break;
|
|
756
|
+
if (tagName && open.indexOf(tagName) < 0 && (tree.name == "EndTag" || tree.from >= parent.firstChild.to))
|
|
757
|
+
open.push(tagName);
|
|
758
|
+
}
|
|
759
|
+
return open;
|
|
760
|
+
}
|
|
761
|
+
const identifier = /^[:\-\.\w\u00b7-\uffff]*$/;
|
|
762
|
+
function completeTag(state, schema, tree, from, to) {
|
|
763
|
+
let end = /\s*>/.test(state.sliceDoc(to, to + 5)) ? "" : ">";
|
|
764
|
+
let parent = findParentElement(tree, true);
|
|
765
|
+
return { from, to,
|
|
766
|
+
options: allowedChildren(state.doc, parent, schema).map(tagName => ({ label: tagName, type: "type" })).concat(openTags(state.doc, tree).map((tag, i) => ({ label: "/" + tag, apply: "/" + tag + end,
|
|
767
|
+
type: "type", boost: 99 - i }))),
|
|
768
|
+
validFor: /^\/?[:\-\.\w\u00b7-\uffff]*$/ };
|
|
769
|
+
}
|
|
770
|
+
function completeCloseTag(state, tree, from, to) {
|
|
771
|
+
let end = /\s*>/.test(state.sliceDoc(to, to + 5)) ? "" : ">";
|
|
772
|
+
return { from, to,
|
|
773
|
+
options: openTags(state.doc, tree).map((tag, i) => ({ label: tag, apply: tag + end, type: "type", boost: 99 - i })),
|
|
774
|
+
validFor: identifier };
|
|
775
|
+
}
|
|
776
|
+
function completeStartTag(state, schema, tree, pos) {
|
|
777
|
+
let options = [], level = 0;
|
|
778
|
+
for (let tagName of allowedChildren(state.doc, tree, schema))
|
|
779
|
+
options.push({ label: "<" + tagName, type: "type" });
|
|
780
|
+
for (let open of openTags(state.doc, tree))
|
|
781
|
+
options.push({ label: "</" + open + ">", type: "type", boost: 99 - level++ });
|
|
782
|
+
return { from: pos, to: pos, options, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ };
|
|
783
|
+
}
|
|
784
|
+
function completeAttrName(state, schema, tree, from, to) {
|
|
785
|
+
let elt = findParentElement(tree), info = elt ? schema.tags[elementName(state.doc, elt)] : null;
|
|
786
|
+
let localAttrs = info && info.attrs ? Object.keys(info.attrs) : [];
|
|
787
|
+
let names = info && info.globalAttrs === false ? localAttrs
|
|
788
|
+
: localAttrs.length ? localAttrs.concat(schema.globalAttrNames) : schema.globalAttrNames;
|
|
789
|
+
return { from, to,
|
|
790
|
+
options: names.map(attrName => ({ label: attrName, type: "property" })),
|
|
791
|
+
validFor: identifier };
|
|
792
|
+
}
|
|
793
|
+
function completeAttrValue(state, schema, tree, from, to) {
|
|
794
|
+
var _a;
|
|
795
|
+
let nameNode = (_a = tree.parent) === null || _a === void 0 ? void 0 : _a.getChild("AttributeName");
|
|
796
|
+
let options = [], token = undefined;
|
|
797
|
+
if (nameNode) {
|
|
798
|
+
let attrName = state.sliceDoc(nameNode.from, nameNode.to);
|
|
799
|
+
let attrs = schema.globalAttrs[attrName];
|
|
800
|
+
if (!attrs) {
|
|
801
|
+
let elt = findParentElement(tree), info = elt ? schema.tags[elementName(state.doc, elt)] : null;
|
|
802
|
+
attrs = (info === null || info === void 0 ? void 0 : info.attrs) && info.attrs[attrName];
|
|
803
|
+
}
|
|
804
|
+
if (attrs) {
|
|
805
|
+
let base = state.sliceDoc(from, to).toLowerCase(), quoteStart = '"', quoteEnd = '"';
|
|
806
|
+
if (/^['"]/.test(base)) {
|
|
807
|
+
token = base[0] == '"' ? /^[^"]*$/ : /^[^']*$/;
|
|
808
|
+
quoteStart = "";
|
|
809
|
+
quoteEnd = state.sliceDoc(to, to + 1) == base[0] ? "" : base[0];
|
|
810
|
+
base = base.slice(1);
|
|
811
|
+
from++;
|
|
812
|
+
}
|
|
813
|
+
else {
|
|
814
|
+
token = /^[^\s<>='"]*$/;
|
|
815
|
+
}
|
|
816
|
+
for (let value of attrs)
|
|
817
|
+
options.push({ label: value, apply: quoteStart + value + quoteEnd, type: "constant" });
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
return { from, to, options, validFor: token };
|
|
821
|
+
}
|
|
822
|
+
function htmlCompletionFor(schema, context) {
|
|
823
|
+
let { state, pos } = context, tree = index$1.syntaxTree(state).resolveInner(pos, -1), around = tree.resolve(pos);
|
|
824
|
+
for (let scan = pos, before; around == tree && (before = tree.childBefore(scan));) {
|
|
825
|
+
let last = before.lastChild;
|
|
826
|
+
if (!last || !last.type.isError || last.from < last.to)
|
|
827
|
+
break;
|
|
828
|
+
around = tree = before;
|
|
829
|
+
scan = last.from;
|
|
830
|
+
}
|
|
831
|
+
if (tree.name == "TagName") {
|
|
832
|
+
return tree.parent && /CloseTag$/.test(tree.parent.name) ? completeCloseTag(state, tree, tree.from, pos)
|
|
833
|
+
: completeTag(state, schema, tree, tree.from, pos);
|
|
834
|
+
}
|
|
835
|
+
else if (tree.name == "StartTag") {
|
|
836
|
+
return completeTag(state, schema, tree, pos, pos);
|
|
837
|
+
}
|
|
838
|
+
else if (tree.name == "StartCloseTag" || tree.name == "IncompleteCloseTag") {
|
|
839
|
+
return completeCloseTag(state, tree, pos, pos);
|
|
840
|
+
}
|
|
841
|
+
else if (context.explicit && (tree.name == "OpenTag" || tree.name == "SelfClosingTag") || tree.name == "AttributeName") {
|
|
842
|
+
return completeAttrName(state, schema, tree, tree.name == "AttributeName" ? tree.from : pos, pos);
|
|
843
|
+
}
|
|
844
|
+
else if (tree.name == "Is" || tree.name == "AttributeValue" || tree.name == "UnquotedAttributeValue") {
|
|
845
|
+
return completeAttrValue(state, schema, tree, tree.name == "Is" ? pos : tree.from, pos);
|
|
846
|
+
}
|
|
847
|
+
else if (context.explicit && (around.name == "Element" || around.name == "Text" || around.name == "Document")) {
|
|
848
|
+
return completeStartTag(state, schema, tree, pos);
|
|
849
|
+
}
|
|
850
|
+
else {
|
|
851
|
+
return null;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
HTML tag completion. Opens and closes tags and attributes in a
|
|
856
|
+
context-aware way.
|
|
857
|
+
*/
|
|
858
|
+
function htmlCompletionSource(context) {
|
|
859
|
+
return htmlCompletionFor(Schema.default, context);
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
Create a completion source for HTML extended with additional tags
|
|
863
|
+
or attributes.
|
|
864
|
+
*/
|
|
865
|
+
function htmlCompletionSourceWith(config) {
|
|
866
|
+
let { extraTags, extraGlobalAttributes: extraAttrs } = config;
|
|
867
|
+
let schema = extraAttrs || extraTags ? new Schema(extraTags, extraAttrs) : Schema.default;
|
|
868
|
+
return (context) => htmlCompletionFor(schema, context);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
const jsonParser = /*@__PURE__*/index$2.javascriptLanguage.parser.configure({ top: "SingleExpression" });
|
|
872
|
+
const defaultNesting = [
|
|
873
|
+
{ tag: "script",
|
|
874
|
+
attrs: attrs => attrs.type == "text/typescript" || attrs.lang == "ts",
|
|
875
|
+
parser: index$2.typescriptLanguage.parser },
|
|
876
|
+
{ tag: "script",
|
|
877
|
+
attrs: attrs => attrs.type == "text/babel" || attrs.type == "text/jsx",
|
|
878
|
+
parser: index$2.jsxLanguage.parser },
|
|
879
|
+
{ tag: "script",
|
|
880
|
+
attrs: attrs => attrs.type == "text/typescript-jsx",
|
|
881
|
+
parser: index$2.tsxLanguage.parser },
|
|
882
|
+
{ tag: "script",
|
|
883
|
+
attrs(attrs) {
|
|
884
|
+
return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(attrs.type);
|
|
885
|
+
},
|
|
886
|
+
parser: jsonParser },
|
|
887
|
+
{ tag: "script",
|
|
888
|
+
attrs(attrs) {
|
|
889
|
+
return !attrs.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(attrs.type);
|
|
890
|
+
},
|
|
891
|
+
parser: index$2.javascriptLanguage.parser },
|
|
892
|
+
{ tag: "style",
|
|
893
|
+
attrs(attrs) {
|
|
894
|
+
return (!attrs.lang || attrs.lang == "css") && (!attrs.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(attrs.type));
|
|
895
|
+
},
|
|
896
|
+
parser: index$3.cssLanguage.parser }
|
|
897
|
+
];
|
|
898
|
+
const defaultAttrs = /*@__PURE__*/[
|
|
899
|
+
{ name: "style",
|
|
900
|
+
parser: /*@__PURE__*/index$3.cssLanguage.parser.configure({ top: "Styles" }) }
|
|
901
|
+
].concat(/*@__PURE__*/eventAttributes.map(name => ({ name, parser: index$2.javascriptLanguage.parser })));
|
|
902
|
+
/**
|
|
903
|
+
A language provider based on the [Lezer HTML
|
|
904
|
+
parser](https://github.com/lezer-parser/html), extended with the
|
|
905
|
+
JavaScript and CSS parsers to parse the content of `<script>` and
|
|
906
|
+
`<style>` tags.
|
|
907
|
+
*/
|
|
908
|
+
const htmlPlain = /*@__PURE__*/index$1.LRLanguage.define({
|
|
909
|
+
name: "html",
|
|
910
|
+
parser: /*@__PURE__*/parser.configure({
|
|
911
|
+
props: [
|
|
912
|
+
/*@__PURE__*/index$1.indentNodeProp.add({
|
|
913
|
+
Element(context) {
|
|
914
|
+
let after = /^(\s*)(<\/)?/.exec(context.textAfter);
|
|
915
|
+
if (context.node.to <= context.pos + after[0].length)
|
|
916
|
+
return context.continue();
|
|
917
|
+
return context.lineIndent(context.node.from) + (after[2] ? 0 : context.unit);
|
|
918
|
+
},
|
|
919
|
+
"OpenTag CloseTag SelfClosingTag"(context) {
|
|
920
|
+
return context.column(context.node.from) + context.unit;
|
|
921
|
+
},
|
|
922
|
+
Document(context) {
|
|
923
|
+
if (context.pos + /\s*/.exec(context.textAfter)[0].length < context.node.to)
|
|
924
|
+
return context.continue();
|
|
925
|
+
let endElt = null, close;
|
|
926
|
+
for (let cur = context.node;;) {
|
|
927
|
+
let last = cur.lastChild;
|
|
928
|
+
if (!last || last.name != "Element" || last.to != cur.to)
|
|
929
|
+
break;
|
|
930
|
+
endElt = cur = last;
|
|
931
|
+
}
|
|
932
|
+
if (endElt && !((close = endElt.lastChild) && (close.name == "CloseTag" || close.name == "SelfClosingTag")))
|
|
933
|
+
return context.lineIndent(endElt.from) + context.unit;
|
|
934
|
+
return null;
|
|
935
|
+
}
|
|
936
|
+
}),
|
|
937
|
+
/*@__PURE__*/index$1.foldNodeProp.add({
|
|
938
|
+
Element(node) {
|
|
939
|
+
let first = node.firstChild, last = node.lastChild;
|
|
940
|
+
if (!first || first.name != "OpenTag")
|
|
941
|
+
return null;
|
|
942
|
+
return { from: first.to, to: last.name == "CloseTag" ? last.from : node.to };
|
|
943
|
+
}
|
|
944
|
+
}),
|
|
945
|
+
/*@__PURE__*/index$1.bracketMatchingHandle.add({
|
|
946
|
+
"OpenTag CloseTag": node => node.getChild("TagName")
|
|
947
|
+
})
|
|
948
|
+
]
|
|
949
|
+
}),
|
|
950
|
+
languageData: {
|
|
951
|
+
commentTokens: { block: { open: "<!--", close: "-->" } },
|
|
952
|
+
indentOnInput: /^\s*<\/\w+\W$/,
|
|
953
|
+
wordChars: "-._"
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
/**
|
|
957
|
+
A language provider based on the [Lezer HTML
|
|
958
|
+
parser](https://github.com/lezer-parser/html), extended with the
|
|
959
|
+
JavaScript and CSS parsers to parse the content of `<script>` and
|
|
960
|
+
`<style>` tags.
|
|
961
|
+
*/
|
|
962
|
+
const htmlLanguage = /*@__PURE__*/htmlPlain.configure({
|
|
963
|
+
wrap: /*@__PURE__*/configureNesting(defaultNesting, defaultAttrs)
|
|
964
|
+
});
|
|
965
|
+
/**
|
|
966
|
+
Language support for HTML, including
|
|
967
|
+
[`htmlCompletion`](https://codemirror.net/6/docs/ref/#lang-html.htmlCompletion) and JavaScript and
|
|
968
|
+
CSS support extensions.
|
|
969
|
+
*/
|
|
970
|
+
function html(config = {}) {
|
|
971
|
+
let dialect = "", wrap;
|
|
972
|
+
if (config.matchClosingTags === false)
|
|
973
|
+
dialect = "noMatch";
|
|
974
|
+
if (config.selfClosingTags === true)
|
|
975
|
+
dialect = (dialect ? dialect + " " : "") + "selfClosing";
|
|
976
|
+
if (config.nestedLanguages && config.nestedLanguages.length ||
|
|
977
|
+
config.nestedAttributes && config.nestedAttributes.length)
|
|
978
|
+
wrap = configureNesting((config.nestedLanguages || []).concat(defaultNesting), (config.nestedAttributes || []).concat(defaultAttrs));
|
|
979
|
+
let lang = wrap ? htmlPlain.configure({ wrap, dialect }) : dialect ? htmlLanguage.configure({ dialect }) : htmlLanguage;
|
|
980
|
+
return new index$1.LanguageSupport(lang, [
|
|
981
|
+
htmlLanguage.data.of({ autocomplete: htmlCompletionSourceWith(config) }),
|
|
982
|
+
config.autoCloseTags !== false ? autoCloseTags : [],
|
|
983
|
+
index$2.javascript().support,
|
|
984
|
+
index$3.css().support
|
|
985
|
+
]);
|
|
986
|
+
}
|
|
987
|
+
const selfClosers = /*@__PURE__*/new Set(/*@__PURE__*/"area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));
|
|
988
|
+
/**
|
|
989
|
+
Extension that will automatically insert close tags when a `>` or
|
|
990
|
+
`/` is typed.
|
|
991
|
+
*/
|
|
992
|
+
const autoCloseTags = /*@__PURE__*/index$1.EditorView.inputHandler.of((view, from, to, text, insertTransaction) => {
|
|
993
|
+
if (view.composing || view.state.readOnly || from != to || (text != ">" && text != "/") ||
|
|
994
|
+
!htmlLanguage.isActiveAt(view.state, from, -1))
|
|
995
|
+
return false;
|
|
996
|
+
let base = insertTransaction(), { state } = base;
|
|
997
|
+
let closeTags = state.changeByRange(range => {
|
|
998
|
+
var _a, _b, _c;
|
|
999
|
+
let didType = state.doc.sliceString(range.from - 1, range.to) == text;
|
|
1000
|
+
let { head } = range, around = index$1.syntaxTree(state).resolveInner(head - 1, -1), name;
|
|
1001
|
+
if (around.name == "TagName" || around.name == "StartTag")
|
|
1002
|
+
around = around.parent;
|
|
1003
|
+
if (didType && text == ">" && around.name == "OpenTag") {
|
|
1004
|
+
if (((_b = (_a = around.parent) === null || _a === void 0 ? void 0 : _a.lastChild) === null || _b === void 0 ? void 0 : _b.name) != "CloseTag" &&
|
|
1005
|
+
(name = elementName(state.doc, around.parent, head)) &&
|
|
1006
|
+
!selfClosers.has(name)) {
|
|
1007
|
+
let to = head + (state.doc.sliceString(head, head + 1) === ">" ? 1 : 0);
|
|
1008
|
+
let insert = `</${name}>`;
|
|
1009
|
+
return { range, changes: { from: head, to, insert } };
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
else if (didType && text == "/" && around.name == "IncompleteCloseTag") {
|
|
1013
|
+
let base = around.parent;
|
|
1014
|
+
if (around.from == head - 2 && ((_c = base.lastChild) === null || _c === void 0 ? void 0 : _c.name) != "CloseTag" &&
|
|
1015
|
+
(name = elementName(state.doc, base, head)) && !selfClosers.has(name)) {
|
|
1016
|
+
let to = head + (state.doc.sliceString(head, head + 1) === ">" ? 1 : 0);
|
|
1017
|
+
let insert = `${name}>`;
|
|
1018
|
+
return {
|
|
1019
|
+
range: index$1.EditorSelection.cursor(head + insert.length, -1),
|
|
1020
|
+
changes: { from: head, to, insert }
|
|
1021
|
+
};
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
return { range };
|
|
1025
|
+
});
|
|
1026
|
+
if (closeTags.changes.empty)
|
|
1027
|
+
return false;
|
|
1028
|
+
view.dispatch([
|
|
1029
|
+
base,
|
|
1030
|
+
state.update(closeTags, {
|
|
1031
|
+
userEvent: "input.complete",
|
|
1032
|
+
scrollIntoView: true
|
|
1033
|
+
})
|
|
1034
|
+
]);
|
|
1035
|
+
return true;
|
|
1036
|
+
});
|
|
1037
|
+
|
|
1038
|
+
exports.autoCloseTags = autoCloseTags;
|
|
1039
|
+
exports.html = html;
|
|
1040
|
+
exports.htmlCompletionSource = htmlCompletionSource;
|
|
1041
|
+
exports.htmlCompletionSourceWith = htmlCompletionSourceWith;
|
|
1042
|
+
exports.htmlLanguage = htmlLanguage;
|
|
1043
|
+
exports.htmlPlain = htmlPlain;
|
|
1044
|
+
//# sourceMappingURL=index-de3dfsQr.js.map
|