markstream-react 0.0.52 → 0.0.54
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/README.md +43 -6
- package/dist/Tooltip-DRyaxB2U.js +207 -0
- package/dist/abap-DnJxzdy9.js +1 -0
- package/dist/actionscript-3-DKotD2Vd.js +1 -0
- package/dist/ada-iG1FnIvR.js +1 -0
- package/dist/andromeeda-C4gqWexZ.js +1 -0
- package/dist/angular-html-C5GGT2tR.js +1 -0
- package/dist/angular-ts-Qqqp7JE0.js +1 -0
- package/dist/apache-CdTKWnKT.js +1 -0
- package/dist/apex-BtozVX6V.js +1 -0
- package/dist/apl-BkgZWazH.js +1 -0
- package/dist/applescript-BlLNmGTp.js +1 -0
- package/dist/ara-Ba3fhlsS.js +1 -0
- package/dist/asciidoc-AY8u9WWM.js +1 -0
- package/dist/asm-CHX6lpGW.js +1 -0
- package/dist/astro-BxFA88J7.js +1 -0
- package/dist/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/awk-XRrwoikR.js +1 -0
- package/dist/ayu-dark-DYE7WIF3.js +1 -0
- package/dist/ayu-light-BA47KaF1.js +1 -0
- package/dist/ayu-mirage-32ctXXKs.js +1 -0
- package/dist/ballerina-Dh0JsEtz.js +1 -0
- package/dist/bat-BVu0TwaT.js +1 -0
- package/dist/beancount-CJl0njO0.js +1 -0
- package/dist/berry-Bmu6i3Vs.js +1 -0
- package/dist/bibtex-CGjxJ4Zd.js +1 -0
- package/dist/bicep-DSW96mAt.js +1 -0
- package/dist/bird2-DxzquW1t.js +1 -0
- package/dist/blade-B0Yy4jmA.js +1 -0
- package/dist/bsl-DGicdwC0.js +1 -0
- package/dist/c-BmJt9k-y.js +1 -0
- package/dist/c3-BP_4uRj3.js +1 -0
- package/dist/cadence-DbDq8SCj.js +1 -0
- package/dist/cairo-Dz8fl918.js +1 -0
- package/dist/catppuccin-frappe-DFWUc33u.js +1 -0
- package/dist/catppuccin-latte-C9dUb6Cb.js +1 -0
- package/dist/catppuccin-macchiato-DQyhUUbL.js +1 -0
- package/dist/catppuccin-mocha-D87Tk5Gz.js +1 -0
- package/dist/clarity-Bb40UnPS.js +1 -0
- package/dist/clojure-BjI0Knrv.js +1 -0
- package/dist/cmake-BYiqpiH1.js +1 -0
- package/dist/cobol-B1Bs9cCy.js +1 -0
- package/dist/codeBlockExtraProps-bURhH5ZJ.js +3 -0
- package/dist/codeowners-L91meNbn.js +1 -0
- package/dist/codeql-Cd-JFsJB.js +1 -0
- package/dist/coffee-BDkVV41o.js +1 -0
- package/dist/common-lisp-DOi1njVG.js +1 -0
- package/dist/coq-BfbrVLCY.js +1 -0
- package/dist/cpp-oXxK9OCk.js +1 -0
- package/dist/crystal-2eHiXEKD.js +1 -0
- package/dist/csharp-DhuT4xSQ.js +1 -0
- package/dist/css-C6sBVIXB.js +1 -0
- package/dist/csv-DXKU4rRd.js +1 -0
- package/dist/cue-zmT78Agv.js +1 -0
- package/dist/cypher-bkHSskm3.js +1 -0
- package/dist/d-vs9xsbRV.js +1 -0
- package/dist/dark-plus-C3mMm8J8.js +1 -0
- package/dist/dart-ATbvIoNW.js +1 -0
- package/dist/dax-D135z3aS.js +1 -0
- package/dist/desktop-CigPEpQ5.js +1 -0
- package/dist/diff-Beq1YlA8.js +1 -0
- package/dist/docker-V5Al5bpF.js +1 -0
- package/dist/dotenv-D9G8sA2m.js +1 -0
- package/dist/dracula-BzJJZx-M.js +1 -0
- package/dist/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/dream-maker-BsoKROiO.js +1 -0
- package/dist/edge-BUP_aW-j.js +1 -0
- package/dist/elixir-CV6JUqYA.js +1 -0
- package/dist/elm-5NnWpb8Q.js +1 -0
- package/dist/emacs-lisp-C4732ieo.js +1 -0
- package/dist/erb-DzuXK2qx.js +1 -0
- package/dist/erlang-DAw79KxH.js +1 -0
- package/dist/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/everforest-light-C8M2exoo.js +1 -0
- package/dist/fennel-qzPJJAAI.js +1 -0
- package/dist/fish-Cx6My9pS.js +1 -0
- package/dist/fluent-BsukS3Co.js +1 -0
- package/dist/fortran-fixed-form-BiRvzwyR.js +1 -0
- package/dist/fortran-free-form-CakU9R0a.js +1 -0
- package/dist/fsharp-BmLNaTNL.js +1 -0
- package/dist/gdresource-pHyHNgx5.js +1 -0
- package/dist/gdscript-BpxQpKjR.js +1 -0
- package/dist/gdshader-BC7WJXp9.js +1 -0
- package/dist/genie-IZOju1hG.js +1 -0
- package/dist/gherkin-DUpgZfGr.js +1 -0
- package/dist/git-commit-Bptnmh-c.js +1 -0
- package/dist/git-rebase-CqNhyBhE.js +1 -0
- package/dist/github-dark-DHJKELXO.js +1 -0
- package/dist/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/github-light-DAi9KRSo.js +1 -0
- package/dist/github-light-default-D7oLnXFd.js +1 -0
- package/dist/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/gleam-CCCEh_av.js +1 -0
- package/dist/glimmer-js-C8NS61CI.js +1 -0
- package/dist/glimmer-ts-B-RapyDB.js +1 -0
- package/dist/glsl-BDbjGBhJ.js +1 -0
- package/dist/gn-BNGDdMfm.js +1 -0
- package/dist/gnuplot-D0FoiB-W.js +1 -0
- package/dist/go-D4Ovm2g9.js +1 -0
- package/dist/graphql-DTlHKpVh.js +1 -0
- package/dist/groovy-D9sPn4Z-.js +1 -0
- package/dist/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/dist/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/dist/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/dist/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/dist/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/dist/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/dist/hack-BxpNoYuc.js +1 -0
- package/dist/haml-B9roiRDW.js +1 -0
- package/dist/handlebars-Bal7dEre.js +1 -0
- package/dist/haskell-Cp0NQEkn.js +1 -0
- package/dist/haxe-D-PmAGDa.js +1 -0
- package/dist/hcl-DRMo6eis.js +1 -0
- package/dist/hjson-BPEpXUFQ.js +1 -0
- package/dist/hlsl-B-PjNM4a.js +1 -0
- package/dist/horizon-BUw7H-hv.js +1 -0
- package/dist/horizon-bright-CUuTKBJd.js +1 -0
- package/dist/houston-DnULxvSX.js +1 -0
- package/dist/html-B3ILK6fm.js +1 -0
- package/dist/html-derivative-CfZez7eO.js +1 -0
- package/dist/http-Dh7mhfAc.js +1 -0
- package/dist/hurl-DvxDWHzM.js +1 -0
- package/dist/hxml-DB3_nACV.js +1 -0
- package/dist/hy-CLIvbAhW.js +1 -0
- package/dist/imba-B-tO30Ge.js +1 -0
- package/dist/index-70BGc65F.js +1 -0
- package/dist/index-BfHYFUlj.js +85 -0
- package/dist/index-Bsx2m-LR.js +47 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.px.css +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/ini-Bpxu4Zsc.js +1 -0
- package/dist/java-DtRXFtDl.js +1 -0
- package/dist/javascript-DFyEbC5y.js +1 -0
- package/dist/jinja-CVIIYihW.js +1 -0
- package/dist/jison-rKmQmF2-.js +1 -0
- package/dist/json-LWN7Ml79.js +1 -0
- package/dist/json5-CgCB487x.js +1 -0
- package/dist/jsonc-BXrjvC_e.js +1 -0
- package/dist/jsonl-D5dm1SHP.js +1 -0
- package/dist/jsonnet-B60UklUs.js +1 -0
- package/dist/jssm-CsqlGknB.js +1 -0
- package/dist/jsx-g2NrEQII.js +1 -0
- package/dist/julia-3RKjS8FQ.js +1 -0
- package/dist/just-CVCZ9vRQ.js +1 -0
- package/dist/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/dist/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/dist/kanagawa-wave-DWedfzmr.js +1 -0
- package/dist/kdl-DWIPcypl.js +1 -0
- package/dist/kotlin-DiV2Dt9D.js +1 -0
- package/dist/kusto-Bjy7G7j4.js +1 -0
- package/dist/laserwave-DUszq2jm.js +1 -0
- package/dist/latex-Bs1X87VY.js +1 -0
- package/dist/lean-BpZurxeZ.js +1 -0
- package/dist/less-DKKxO4Pm.js +1 -0
- package/dist/light-plus-B7mTdjB0.js +1 -0
- package/dist/liquid-DhgCFC9B.js +1 -0
- package/dist/llvm-w4szIS5k.js +1 -0
- package/dist/log-CnKjEmrw.js +1 -0
- package/dist/logo-BmG1tMr6.js +1 -0
- package/dist/lua-DlAioYQl.js +1 -0
- package/dist/luau-CDzI2T2B.js +1 -0
- package/dist/make-Ccm3NI5i.js +1 -0
- package/dist/markdown-DY93LJPj.js +1 -0
- package/dist/marko-DcK8dvuy.js +1 -0
- package/dist/markstream-react.css +1 -1
- package/dist/material-theme-D5KoaKCx.js +1 -0
- package/dist/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/matlab-nYX3zffi.js +1 -0
- package/dist/mdc-DQafIqD6.js +1 -0
- package/dist/mdx-C8C9IGe9.js +1 -0
- package/dist/mermaid--Jyu4oWd.js +1 -0
- package/dist/min-dark-CafNBF8u.js +1 -0
- package/dist/min-light-CTRr51gU.js +1 -0
- package/dist/mipsasm-BjAqecqh.js +1 -0
- package/dist/mojo-C2cxD0aZ.js +1 -0
- package/dist/monokai-D4h5O-jR.js +1 -0
- package/dist/moonbit-B4gpyPjt.js +1 -0
- package/dist/move-Dg7rFHVC.js +1 -0
- package/dist/narrat-BTSicUR-.js +1 -0
- package/dist/next.d.ts +41 -18
- package/dist/next.js +1 -1
- package/dist/nextflow-CRfcQpDI.js +1 -0
- package/dist/nextflow-groovy-DuWVVkaq.js +1 -0
- package/dist/nginx-B2z8CTeP.js +1 -0
- package/dist/night-owl-C39BiMTA.js +1 -0
- package/dist/night-owl-light-CMTm3GFP.js +1 -0
- package/dist/nim-DP_Ekwra.js +1 -0
- package/dist/nix-_0LqsLde.js +1 -0
- package/dist/nord-Ddv68eIx.js +1 -0
- package/dist/nushell-Mk45ZIMx.js +1 -0
- package/dist/objective-c-DLT9zZoE.js +1 -0
- package/dist/objective-cpp-DKXr-AK_.js +1 -0
- package/dist/ocaml-DP9q6K5L.js +1 -0
- package/dist/odin-BINPiy40.js +1 -0
- package/dist/one-dark-pro-DVMEJ2y_.js +1 -0
- package/dist/one-light-C3Wv6jpd.js +1 -0
- package/dist/openscad-CVq2HK1T.js +1 -0
- package/dist/pascal-DjTTLVNS.js +1 -0
- package/dist/perl-CmsZP_P9.js +1 -0
- package/dist/php-vdga8FKK.js +1 -0
- package/dist/pierre-dark-CyvmCCZW.js +1 -0
- package/dist/pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js +1 -0
- package/dist/pierre-dark-soft-BHGpRqa4.js +1 -0
- package/dist/pierre-dark-tritanopia-Beq2gCRQ.js +1 -0
- package/dist/pierre-dark-vibrant-BWBVywrn.js +1 -0
- package/dist/pierre-light-480U9XYS.js +1 -0
- package/dist/pierre-light-protanopia-deuteranopia-CaVOBURG.js +1 -0
- package/dist/pierre-light-soft-CVdyfjmI.js +1 -0
- package/dist/pierre-light-tritanopia-B4_gpKOM.js +1 -0
- package/dist/pierre-light-vibrant-DdTDNdfJ.js +1 -0
- package/dist/pkl-0Sl31KKD.js +1 -0
- package/dist/plastic-3e1v2bzS.js +1 -0
- package/dist/plsql-CJrHCTnj.js +1 -0
- package/dist/po-y5MdiEbo.js +1 -0
- package/dist/poimandres-CS3Unz2-.js +1 -0
- package/dist/polar-Bsx6RkUC.js +1 -0
- package/dist/postcss-CeUBPB2S.js +1 -0
- package/dist/powerquery-CW27I574.js +1 -0
- package/dist/powershell-DSYJ6xcj.js +1 -0
- package/dist/prisma-CLoN-gBj.js +1 -0
- package/dist/prolog-Bgt5DHUA.js +1 -0
- package/dist/proto-C194Edqz.js +1 -0
- package/dist/pug-KXbBtQiy.js +1 -0
- package/dist/puppet-TSkl_nn0.js +1 -0
- package/dist/purescript-BrDje9qL.js +1 -0
- package/dist/python-DlV7vnVD.js +1 -0
- package/dist/qml-DTv-54bL.js +1 -0
- package/dist/qmldir-CSZk7E48.js +1 -0
- package/dist/qss-DACx-k9g.js +1 -0
- package/dist/r-EOoB7omE.js +1 -0
- package/dist/racket-D1nq-KeH.js +1 -0
- package/dist/raku-DocPDKZq.js +1 -0
- package/dist/razor-B-tk-wsx.js +1 -0
- package/dist/red-bN70gL4F.js +1 -0
- package/dist/reg-5ydmJHEw.js +1 -0
- package/dist/regexp-CpyjTnFF.js +1 -0
- package/dist/rel-D68lwU-3.js +1 -0
- package/dist/riscv-Cl4WfXj6.js +1 -0
- package/dist/ron-DIZViclS.js +1 -0
- package/dist/rose-pine-dawn-DHQR4-dF.js +1 -0
- package/dist/rose-pine-moon-D4_iv3hh.js +1 -0
- package/dist/rose-pine-qdsjHGoJ.js +1 -0
- package/dist/rosmsg-sf_0D22S.js +1 -0
- package/dist/rst-BG5pn2qR.js +1 -0
- package/dist/ruby-DcH2yJAk.js +1 -0
- package/dist/rust-DpWcZSqc.js +1 -0
- package/dist/sas-B5HzFFRM.js +1 -0
- package/dist/sass-DY_rGA2-.js +1 -0
- package/dist/scala-CYRsmRER.js +1 -0
- package/dist/scheme-C45fPb3F.js +1 -0
- package/dist/scss-BV51UrMN.js +1 -0
- package/dist/sdbl-BpucmfEo.js +1 -0
- package/dist/server.d.ts +28 -5
- package/dist/server.js +1 -1
- package/dist/shaderlab-DNyPh2Q6.js +1 -0
- package/dist/shellscript-B8OHlvmy.js +1 -0
- package/dist/shellsession-OATBsyRD.js +1 -0
- package/dist/slack-dark-BthQWCQV.js +1 -0
- package/dist/slack-ochin-DqwNpetd.js +1 -0
- package/dist/smalltalk-CKvddXL8.js +1 -0
- package/dist/snazzy-light-Bw305WKR.js +1 -0
- package/dist/solarized-dark-DXbdFlpD.js +1 -0
- package/dist/solarized-light-L9t79GZl.js +1 -0
- package/dist/solidity-XfXaqt9k.js +1 -0
- package/dist/soy-B8YA9JrK.js +1 -0
- package/dist/sparql-CLNNOQQI.js +1 -0
- package/dist/splunk-CFtInczE.js +1 -0
- package/dist/sql-Q2iGWUi5.js +1 -0
- package/dist/ssh-config-Dqsr-I88.js +1 -0
- package/dist/stata-BR_XK0X0.js +1 -0
- package/dist/stylus-BeJftkpb.js +1 -0
- package/dist/surrealql-C_6seBBi.js +1 -0
- package/dist/svelte-0br9ZpFT.js +1 -0
- package/dist/swift-0qv2hBXI.js +1 -0
- package/dist/synthwave-84-ChtBzv_y.js +1 -0
- package/dist/system-verilog-B3nElewZ.js +1 -0
- package/dist/systemd-B7SlkmfE.js +1 -0
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.js +1 -1
- package/dist/talonscript-BrsbXmRy.js +1 -0
- package/dist/tasl-CMkPZNj1.js +1 -0
- package/dist/tcl-CiyEbZSK.js +1 -0
- package/dist/templ-B0JhIwv9.js +1 -0
- package/dist/terraform-BUB-_BlF.js +1 -0
- package/dist/tex-ByCZWQmN.js +1 -0
- package/dist/tokyo-night-hegEt444.js +1 -0
- package/dist/toml-VldhK7iW.js +1 -0
- package/dist/ts-tags-BWP4nPgY.js +1 -0
- package/dist/tsv-BQ9ptESM.js +1 -0
- package/dist/tsx-DYwE5ssU.js +1 -0
- package/dist/turtle-BVy4HXn4.js +1 -0
- package/dist/twig-z8zdyiH9.js +1 -0
- package/dist/types/components/HtmlInlineNode/HtmlInlineNode.d.ts +4 -1
- package/dist/types/components/NodeRenderer.d.ts +2 -1
- package/dist/types/customComponents.d.ts +20 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next.d.ts +7 -3
- package/dist/types/renderers/renderNode.d.ts +1 -1
- package/dist/types/server-renderer/index.d.ts +6 -2
- package/dist/types/server.d.ts +2 -2
- package/dist/types/types.d.ts +8 -3
- package/dist/types/utils/customHtmlTag.d.ts +5 -4
- package/dist/types/utils/htmlToReact.d.ts +17 -6
- package/dist/typescript-DI7mmMRd.js +1 -0
- package/dist/typespec-BAzX0Tk7.js +1 -0
- package/dist/typst-JIZTSUoJ.js +1 -0
- package/dist/v-B66J5FdL.js +1 -0
- package/dist/vala-p2PL1w-1.js +1 -0
- package/dist/vb-Dv-GCw1m.js +1 -0
- package/dist/verilog-DKP7kpC6.js +1 -0
- package/dist/vesper-DRje8inN.js +1 -0
- package/dist/vhdl-Cog-DhcW.js +1 -0
- package/dist/viml-0AN1aqkP.js +1 -0
- package/dist/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/vue-DqsE_lDH.js +1 -0
- package/dist/vue-html-a8uCr53v.js +1 -0
- package/dist/vue-vine-CVmLzYuL.js +1 -0
- package/dist/vyper-sB2l1MOO.js +1 -0
- package/dist/wasm--yL7jHw-.js +1 -0
- package/dist/wasm-CSAWeJiV.js +1 -0
- package/dist/wenyan-CLHHXU5e.js +1 -0
- package/dist/wgsl-DiTcYanS.js +1 -0
- package/dist/wikitext-DT8E9qe0.js +1 -0
- package/dist/wit-CtjT-RdY.js +1 -0
- package/dist/wolfram-1xJNnwe2.js +1 -0
- package/dist/xml-BsgRw6d1.js +1 -0
- package/dist/xsl-CNIkWbJg.js +1 -0
- package/dist/yaml-c2-Vhxho.js +1 -0
- package/dist/zenscript-ChP1MlQf.js +1 -0
- package/dist/zig-rivS3YQG.js +1 -0
- package/package.json +9 -9
- package/dist/Tooltip-Ux2h3oiV.js +0 -207
- package/dist/codeBlockExtraProps-NhTjbA1T.js +0 -3
- package/dist/index-DdaK6qko.js +0 -85
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"./css-C6sBVIXB.js";import e from"./javascript-DFyEbC5y.js";import n from"./scss-BV51UrMN.js";import i from"./php-vdga8FKK.js";import a from"./python-DlV7vnVD.js";import s from"./ruby-DcH2yJAk.js";const r=[...t,...e,...n,...i,...a,...s,Object.freeze(JSON.parse('{"displayName":"Twig","fileTypes":["twig","html.twig"],"firstLineMatch":"<!(?i:DOCTYPE)|<(?i:html)|<\\\\?(?i:php)|\\\\{\\\\{|\\\\{%|\\\\{#","foldingStartMarker":"(<(?i:body|div|dl|fieldset|form|head|li|ol|script|select|style|table|tbody|tfoot|thead|tr|ul)\\\\b.*?>|\x3c!--(?!.*--\\\\s*>)|^\x3c!-- #tminclude (?>.*?--\x3e)$|\\\\{%\\\\s+(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))","foldingStopMarker":"(</(?i:body|div|dl|fieldset|form|head|li|ol|script|select|style|table|tbody|tfoot|thead|tr|ul)>|^(?!.*?\x3c!--).*?--\\\\s*>|^\x3c!-- end tminclude --\x3e$|\\\\{%\\\\s+end(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))","name":"twig","patterns":[{"begin":"(<)([0-:A-Za-z]++)(?=[^>]*></\\\\2>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"end":"(>(<)/)(\\\\2)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"meta.scope.between-tag-pair.html"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.html"}},"name":"meta.tag.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(<\\\\?)(xml)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.xml.html"}},"end":"(\\\\?>)","name":"meta.tag.preprocessor.xml.html","patterns":[{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"}]},{"begin":"\x3c!--","captures":{"0":{"name":"punctuation.definition.comment.html"}},"end":"--\\\\s*>","name":"comment.block.html","patterns":[{"match":"--","name":"invalid.illegal.bad-comments-or-CDATA.html"},{"include":"#embedded-code"}]},{"begin":"<!","captures":{"0":{"name":"punctuation.definition.tag.html"}},"end":">","name":"meta.tag.sgml.html","patterns":[{"begin":"(?i:DOCTYPE)","captures":{"1":{"name":"entity.name.tag.doctype.html"}},"end":"(?=>)","name":"meta.tag.sgml.doctype.html","patterns":[{"match":"\\"[^\\">]*\\"","name":"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{"begin":"\\\\[CDATA\\\\[","end":"]](?=>)","name":"constant.other.inline-data.html"},{"match":"(\\\\s*)(?!--|>)\\\\S(\\\\s*)","name":"invalid.illegal.bad-comments-or-CDATA.html"}]},{"include":"#embedded-code"},{"begin":"(?:^\\\\s+)?(<)((?i:style))\\\\b(?![^>]*/>)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.html"}},"end":"(</)((?i:style))(>)(?:\\\\s*\\\\n)?","name":"source.css.embedded.html","patterns":[{"include":"#tag-stuff"},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"}},"end":"(?=</(?i:style))","patterns":[{"include":"#embedded-code"},{"include":"source.css"}]}]},{"begin":"(?:^\\\\s+)?(<)((?i:script))\\\\b(?![^>]*/>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}},"end":"(?<=</(script|SCRIPT))(>)(?:\\\\s*\\\\n)?","endCaptures":{"2":{"name":"punctuation.definition.tag.html"}},"name":"source.js.embedded.html","patterns":[{"include":"#tag-stuff"},{"begin":"(?<!</(?:script|SCRIPT))(>)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}},"end":"(</)((?i:script))","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.js"}},"match":"(//).*?((?=</script)|$\\\\n?)","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"\\\\*/|(?=</script)","name":"comment.block.js"},{"include":"#php"},{"include":"#twig-print-tag"},{"include":"#twig-statement-tag"},{"include":"#twig-comment-tag"},{"include":"source.js"}]}]},{"begin":"(?i)(?<=\\\\{%\\\\s(?:|include)js\\\\s%})","end":"(?i)(?=\\\\{%\\\\send(?:|include)js\\\\s%})","name":"source.js.embedded.twig","patterns":[{"include":"source.js"}]},{"begin":"(?i)(?<=\\\\{%\\\\s(?:|include|includehires)css\\\\s%})","end":"(?i)(?=\\\\{%\\\\send(?:|include|includehires)css\\\\s%})","name":"source.css.embedded.twig","patterns":[{"include":"source.css"}]},{"begin":"(?i)(?<=\\\\{%\\\\s(?:|include|includehires)scss\\\\s%})","end":"(?i)(?=\\\\{%\\\\send(?:|include|includehires)scss\\\\s%})","name":"source.css.scss.embedded.twig","patterns":[{"include":"source.css.scss"}]},{"begin":"(</?)((?i:body|head|html))\\\\b","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.structure.any.html"}},"end":"(>)","name":"meta.tag.structure.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre))\\\\b","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.block.any.html"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.block.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|[qs]|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var))\\\\b","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.inline.any.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(</?)([0-:A-Za-z]+)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.other.html"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.html","patterns":[{"include":"#tag-stuff"}]},{"include":"#entities"},{"match":"<>","name":"invalid.illegal.incomplete.html"},{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"},{"include":"#twig-print-tag"},{"include":"#twig-statement-tag"},{"include":"#twig-comment-tag"}],"repository":{"embedded-code":{"patterns":[{"include":"#ruby"},{"include":"#php"},{"include":"#twig-print-tag"},{"include":"#twig-statement-tag"},{"include":"#twig-comment-tag"},{"include":"#python"}]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.html"},{"match":"&","name":"invalid.illegal.bad-ampersand.html"}]},"php":{"begin":"(?=(^\\\\s*)?<\\\\?)","end":"(?!(^\\\\s*)?<\\\\?)","patterns":[{"include":"source.php"}]},"python":{"begin":"^\\\\s*<\\\\?python(?!.*\\\\?>)","end":"\\\\?>(?:\\\\s*$\\\\n)?","name":"source.python.embedded.html","patterns":[{"include":"source.python"}]},"ruby":{"patterns":[{"begin":"<%+#","captures":{"0":{"name":"punctuation.definition.comment.erb"}},"end":"%>","name":"comment.block.erb"},{"begin":"<%+(?!>)=?","captures":{"0":{"name":"punctuation.section.embedded.ruby"}},"end":"-?%>","name":"source.ruby.embedded.html","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.ruby"}},"match":"(#).*?(?=-?%>)","name":"comment.line.number-sign.ruby"},{"include":"source.ruby"}]},{"begin":"<\\\\?r(?!>)=?","captures":{"0":{"name":"punctuation.section.embedded.ruby.nitro"}},"end":"-?\\\\?>","name":"source.ruby.nitro.embedded.html","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.ruby.nitro"}},"match":"(#).*?(?=-?\\\\?>)","name":"comment.line.number-sign.ruby.nitro"},{"include":"source.ruby"}]}]},"string-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]},"string-single-quoted":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]},"tag-generic-attribute":{"match":"\\\\b([-:A-Za-z]+)","name":"entity.other.attribute-name.html"},"tag-id-attribute":{"begin":"\\\\b(id)\\\\b\\\\s*(=)","captures":{"1":{"name":"entity.other.attribute-name.id.html"},"2":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[\\"\'])","name":"meta.attribute-with-value.id.html","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"#embedded-code"},{"include":"#entities"}]}]},"tag-stuff":{"patterns":[{"include":"#tag-id-attribute"},{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"},{"include":"#embedded-code"}]},"twig-arrays":{"begin":"(?<=[(,:\\\\[{\\\\s])\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.twig"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.twig"}},"name":"meta.array.twig","patterns":[{"include":"#twig-arrays"},{"include":"#twig-hashes"},{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-strings"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"match":",","name":"punctuation.separator.object.twig"}]},"twig-comment-tag":{"begin":"\\\\{#-?","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.twig"}},"end":"-?#}","endCaptures":{"0":{"name":"punctuation.definition.comment.end.twig"}},"name":"comment.block.twig"},"twig-constants":{"patterns":[{"match":"(?i)(?<=[(,:\\\\[{\\\\s])(?:true|false|null|none)(?=[]),}\\\\s])","name":"constant.language.twig"},{"match":"(?<=[(,:\\\\[{\\\\s]|\\\\.\\\\.|\\\\*\\\\*)[0-9]+(?:\\\\.[0-9]+)?(?=[]),}\\\\s]|\\\\.\\\\.|\\\\*\\\\*)","name":"constant.numeric.twig"}]},"twig-filters":{"captures":{"1":{"name":"support.function.twig"}},"match":"(?<=[]\\"\')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)(abs|capitalize|e(?:scape)?|first|join|(?:json|url)_encode|keys|last|length|lower|nl2br|number_format|raw|reverse|round|sort|striptags|title|trim|upper)(?=[]),:|}\\\\s]|\\\\.\\\\.|\\\\*\\\\*)"},"twig-filters-ud":{"captures":{"1":{"name":"meta.function-call.other.twig"}},"match":"(?<=[]\\"\')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)"},"twig-filters-warg":{"begin":"(?<=[]\\"\')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)(batch|convert_encoding|date|date_modify|default|e(?:scape)?|format|join|merge|number_format|replace|round|slice|split|trim)(\\\\()","beginCaptures":{"1":{"name":"support.function.twig"},"2":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-filters-warg-ud":{"begin":"(?<=[]\\"\')0-9A-Z_a-z\\\\x7F-ÿ]\\\\||\\\\{%\\\\sfilter\\\\s)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(\\\\()","beginCaptures":{"1":{"name":"meta.function-call.other.twig"},"2":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-functions":{"captures":{"1":{"name":"support.function.twig"}},"match":"(?<=is\\\\s)(defined|empty|even|iterable|odd)"},"twig-functions-warg":{"begin":"(?<=[(,:\\\\[{\\\\s])(attribute|block|constant|cycle|date|divisible by|dump|include|max|min|parent|random|range|same as|source|template_from_string)(\\\\()","beginCaptures":{"1":{"name":"support.function.twig"},"2":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"}]},"twig-hashes":{"begin":"(?<=[(,:\\\\[{\\\\s])\\\\{","beginCaptures":{"0":{"name":"punctuation.section.hash.begin.twig"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.hash.end.twig"}},"name":"meta.hash.twig","patterns":[{"include":"#twig-hashes"},{"include":"#twig-arrays"},{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-strings"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"match":":","name":"punctuation.separator.key-value.twig"},{"match":",","name":"punctuation.separator.object.twig"}]},"twig-keywords":{"match":"(?<=\\\\s)((?:end)?(?:autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim)|as|do|else|elseif|extends|flush|from|ignore missing|import|include|only|use|with)(?=\\\\s)","name":"keyword.control.twig"},"twig-macros":{"begin":"(?<=[(,:\\\\[{\\\\s])([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(?:(\\\\.)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*))?(\\\\()","beginCaptures":{"1":{"name":"meta.function-call.twig"},"2":{"name":"punctuation.separator.property.twig"},"3":{"name":"variable.other.property.twig"},"4":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-objects":{"captures":{"1":{"name":"variable.other.twig"}},"match":"(?<=[(,:\\\\[{\\\\s])([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(?=[](),.:\\\\[|}\\\\s])"},"twig-operators":{"patterns":[{"captures":{"1":{"name":"keyword.operator.arithmetic.twig"}},"match":"(?<=\\\\s)([-+]|//?|%|\\\\*\\\\*?)(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.assignment.twig"}},"match":"(?<=\\\\s)([=~])(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.bitwise.twig"}},"match":"(?<=\\\\s)(b-(?:and|or|xor))(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.comparison.twig"}},"match":"(?<=\\\\s)([!=]=|<=?|>=?|(?:not )?in|is(?: not)?|(?:ends|starts) with|matches)(?=\\\\s)"},{"captures":{"1":{"name":"keyword.operator.logical.twig"}},"match":"(?<=\\\\s)([:?]|\\\\?:|\\\\?\\\\?|and|not|or)(?=\\\\s)"},{"captures":{"0":{"name":"keyword.operator.other.twig"}},"match":"(?<=[]\\"\')0-9A-Z_a-z\\\\x7F-ÿ])\\\\.\\\\.(?=[\\"\'0-9A-Z_a-z\\\\x7F-ÿ])"},{"captures":{"0":{"name":"keyword.operator.other.twig"}},"match":"(?<=[]\\"\')0-9A-Z_a-z}\\\\x7F-ÿ])\\\\|(?=[A-Z_a-z\\\\x7F-ÿ])"}]},"twig-print-tag":{"begin":"\\\\{\\\\{-?","beginCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"end":"-?}}","endCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"name":"meta.tag.template.value.twig","patterns":[{"include":"#twig-constants"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-properties":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.property.twig"},"2":{"name":"variable.other.property.twig"}},"match":"(?<=[0-9A-Z_a-z\\\\x7F-ÿ])(\\\\.)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(?=[]),.:\\\\[|}\\\\s])"},{"begin":"(?<=[0-9A-Z_a-z\\\\x7F-ÿ])(\\\\.)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(\\\\()","beginCaptures":{"1":{"name":"punctuation.separator.property.twig"},"2":{"name":"variable.other.property.twig"},"3":{"name":"punctuation.definition.parameters.begin.twig"}},"contentName":"meta.function.arguments.twig","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.twig"}},"patterns":[{"include":"#twig-constants"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-strings"},{"include":"#twig-arrays"}]},{"captures":{"1":{"name":"punctuation.section.array.begin.twig"},"2":{"name":"variable.other.property.twig"},"3":{"name":"punctuation.section.array.end.twig"},"4":{"name":"punctuation.section.array.begin.twig"},"5":{"name":"variable.other.property.twig"},"6":{"name":"punctuation.section.array.end.twig"},"7":{"name":"punctuation.section.array.begin.twig"},"8":{"name":"variable.other.property.twig"},"9":{"name":"punctuation.section.array.end.twig"}},"match":"(?<=[]0-9A-Z_a-z\\\\x7F-ÿ])(?:(\\\\[)(\'[A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*\')(])|(\\\\[)(\\"[A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*\\")(])|(\\\\[)([A-Z_a-z\\\\x7F-ÿ][0-9A-Z_a-z\\\\x7F-ÿ]*)(]))"}]},"twig-statement-tag":{"begin":"\\\\{%-?","beginCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"end":"-?%}","endCaptures":{"0":{"name":"punctuation.section.tag.twig"}},"name":"meta.tag.template.block.twig","patterns":[{"include":"#twig-constants"},{"include":"#twig-keywords"},{"include":"#twig-operators"},{"include":"#twig-functions-warg"},{"include":"#twig-functions"},{"include":"#twig-macros"},{"include":"#twig-filters-warg"},{"include":"#twig-filters"},{"include":"#twig-filters-warg-ud"},{"include":"#twig-filters-ud"},{"include":"#twig-objects"},{"include":"#twig-properties"},{"include":"#twig-strings"},{"include":"#twig-arrays"},{"include":"#twig-hashes"}]},"twig-strings":{"patterns":[{"begin":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.twig"}},"end":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.twig"}},"name":"string.quoted.single.twig"},{"begin":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.twig"}},"end":"(?:(?<!\\\\\\\\)|(?<=\\\\\\\\\\\\\\\\))\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.twig"}},"name":"string.quoted.double.twig"}]}},"scopeName":"text.html.twig","embeddedLangs":["css","javascript","scss","php","python","ruby"]}'))];export{r as default};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { HtmlPolicy } from 'stream-markdown-parser';
|
|
1
|
+
import { HtmlPolicy, ParsedNode } from 'stream-markdown-parser';
|
|
2
2
|
import { NodeComponentProps } from '../../types/node-component';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
export declare function HtmlInlineNode(props: NodeComponentProps<{
|
|
5
5
|
type: 'html_inline';
|
|
6
6
|
content: string;
|
|
7
|
+
tag?: string;
|
|
8
|
+
attrs?: [string, string | null][] | null;
|
|
9
|
+
children?: ParsedNode[];
|
|
7
10
|
loading?: boolean;
|
|
8
11
|
autoClosed?: boolean;
|
|
9
12
|
}> & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { HtmlComponentMap, StreamingComponentMap } from '../customComponents';
|
|
1
2
|
import { NodeRendererProps } from '../types';
|
|
2
3
|
import { default as React } from 'react';
|
|
3
|
-
export declare
|
|
4
|
+
export declare function NodeRenderer<TStreamingComponents extends StreamingComponentMap = StreamingComponentMap, THtmlComponents extends Record<string, any> = HtmlComponentMap>(rawProps: NodeRendererProps<TStreamingComponents, THtmlComponents>): React.JSX.Element;
|
|
4
5
|
export default NodeRenderer;
|
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
1
|
+
import { ComponentType, PropsWithChildren } from 'react';
|
|
2
|
+
import { NodeComponentProps } from './types/node-component';
|
|
2
3
|
export type CustomComponentDisplayMode = 'inline' | 'block';
|
|
3
4
|
export type MarkstreamCustomComponent<P = never> = ComponentType<P> & {
|
|
4
5
|
markstreamDisplay?: CustomComponentDisplayMode;
|
|
5
6
|
};
|
|
6
7
|
export type CustomComponentMap = Record<string, MarkstreamCustomComponent>;
|
|
8
|
+
export type StreamingComponent<TNode = any> = ComponentType<NodeComponentProps<TNode>>;
|
|
9
|
+
export type StreamingComponentMap = Record<string, StreamingComponent<any>>;
|
|
10
|
+
export type HtmlComponent<P extends object = any> = ComponentType<PropsWithChildren<P>>;
|
|
11
|
+
export type HtmlComponentMap = Record<string, HtmlComponent<any>>;
|
|
12
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false;
|
|
13
|
+
type ComponentProps<T> = T extends ComponentType<infer P> ? P : T extends (props: infer P) => any ? P : never;
|
|
14
|
+
export type StreamingComponentDefinitions<T extends Record<string, any>> = {
|
|
15
|
+
[K in keyof T]: ComponentProps<T[K]> extends infer P ? IsAny<P> extends true ? T[K] : P extends NodeComponentProps<any> ? NodeComponentProps<any> extends P ? T[K] : never : never : never;
|
|
16
|
+
};
|
|
17
|
+
type ParserComponentOnlyProp = Exclude<keyof NodeComponentProps<any>, 'children' | 'node'>;
|
|
18
|
+
export type HtmlComponentDefinitions<T extends Record<string, any>> = {
|
|
19
|
+
[K in keyof T]: ComponentProps<T[K]> extends infer P ? IsAny<P> extends true ? T[K] : Extract<keyof P, ParserComponentOnlyProp> extends never ? T[K] : never : never;
|
|
20
|
+
};
|
|
7
21
|
export declare function subscribeCustomComponents(listener: () => void): () => void;
|
|
8
22
|
export declare function getCustomComponentsRevision(): number;
|
|
9
23
|
export declare function setCustomComponents(id: string, mapping: CustomComponentMap): void;
|
|
@@ -15,3 +29,8 @@ export declare function getCustomComponentDisplay(component: ComponentType<never
|
|
|
15
29
|
export declare function withMarkstreamComponentDisplay<T extends ComponentType<never>>(component: T, display: CustomComponentDisplayMode): T & {
|
|
16
30
|
markstreamDisplay: CustomComponentDisplayMode;
|
|
17
31
|
};
|
|
32
|
+
export declare function defineStreamingComponents<const T extends Record<string, ComponentType<any>>>(components: T & StreamingComponentDefinitions<T>): T & StreamingComponentDefinitions<T>;
|
|
33
|
+
export declare function defineHtmlComponents<const T extends Record<string, ComponentType<any>>>(components: T & HtmlComponentDefinitions<T>): T & HtmlComponentDefinitions<T>;
|
|
34
|
+
export declare function normalizeComponentMap<T>(mapping?: Record<string, T>): Record<string, T>;
|
|
35
|
+
export declare function warnComponentMapConflicts(streamingComponents: StreamingComponentMap, htmlComponents: HtmlComponentMap, warnedTags: Set<string>): void;
|
|
36
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -51,8 +51,8 @@ export { ThematicBreakNode } from './components/ThematicBreakNode/ThematicBreakN
|
|
|
51
51
|
export { Tooltip } from './components/Tooltip/Tooltip';
|
|
52
52
|
export type { TooltipPlacement, TooltipProps } from './components/Tooltip/Tooltip';
|
|
53
53
|
export { VmrContainerNode } from './components/VmrContainerNode/VmrContainerNode';
|
|
54
|
-
export { clearGlobalCustomComponents, getCustomComponentDisplay, getCustomNodeComponents, removeCustomComponents, setCustomComponents, withMarkstreamComponentDisplay, } from './customComponents';
|
|
55
|
-
export type { CustomComponentDisplayMode, MarkstreamCustomComponent, } from './customComponents';
|
|
54
|
+
export { clearGlobalCustomComponents, defineHtmlComponents, defineStreamingComponents, getCustomComponentDisplay, getCustomNodeComponents, removeCustomComponents, setCustomComponents, withMarkstreamComponentDisplay, } from './customComponents';
|
|
55
|
+
export type { CustomComponentDisplayMode, HtmlComponent, HtmlComponentMap, MarkstreamCustomComponent, StreamingComponent, StreamingComponentMap, } from './customComponents';
|
|
56
56
|
export { useSmoothMarkdownStream } from './hooks/useSmoothMarkdownStream';
|
|
57
57
|
export type { SmoothMarkdownStreamOptions, SmoothMarkdownStreamSnapshot, } from './hooks/useSmoothMarkdownStream';
|
|
58
58
|
export * from './i18n/useSafeI18n';
|
package/dist/types/next.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D2Loader, disableD2, enableD2, isD2Enabled, setD2Loader } from './components/D2BlockNode/d2';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import { clearGlobalCustomComponents, getCustomNodeComponents, removeCustomComponents, setCustomComponents } from './customComponents';
|
|
3
|
+
import { clearGlobalCustomComponents, defineHtmlComponents, defineStreamingComponents, getCustomNodeComponents, removeCustomComponents, setCustomComponents } from './customComponents';
|
|
4
4
|
export declare const AdmonitionNode: {
|
|
5
5
|
(props: import('./types/node-component').NodeComponentProps<{
|
|
6
6
|
type: "admonition";
|
|
@@ -120,6 +120,9 @@ export declare const HtmlInlineNode: {
|
|
|
120
120
|
(props: import('./types/node-component').NodeComponentProps<{
|
|
121
121
|
type: "html_inline";
|
|
122
122
|
content?: string;
|
|
123
|
+
tag?: string;
|
|
124
|
+
attrs?: [string, string | null][] | null;
|
|
125
|
+
children?: import('stream-markdown-parser').ParsedNode[];
|
|
123
126
|
}>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
124
127
|
displayName: string;
|
|
125
128
|
};
|
|
@@ -190,7 +193,7 @@ export declare const MermaidBlockNode: {
|
|
|
190
193
|
displayName: string;
|
|
191
194
|
};
|
|
192
195
|
export declare const NodeRenderer: {
|
|
193
|
-
(props: import('./types').NodeRendererProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
196
|
+
(props: import('./types').NodeRendererProps<import('./customComponents').StreamingComponentMap, Record<string, any>>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
194
197
|
displayName: string;
|
|
195
198
|
};
|
|
196
199
|
export declare const FallbackComponent: {
|
|
@@ -283,13 +286,14 @@ export declare const VmrContainerNode: {
|
|
|
283
286
|
export default NodeRenderer;
|
|
284
287
|
export type { D2Loader };
|
|
285
288
|
export { disableD2, enableD2, isD2Enabled, setD2Loader };
|
|
286
|
-
export { clearGlobalCustomComponents, getCustomNodeComponents, removeCustomComponents, setCustomComponents, };
|
|
289
|
+
export { clearGlobalCustomComponents, defineHtmlComponents, defineStreamingComponents, getCustomNodeComponents, removeCustomComponents, setCustomComponents, };
|
|
287
290
|
export type { HtmlPreviewFrameProps } from './components/CodeBlockNode/HtmlPreviewFrame';
|
|
288
291
|
export * from './components/D2BlockNode/d2';
|
|
289
292
|
export type { LinkNodeStyleProps } from './components/LinkNode/LinkNode';
|
|
290
293
|
export type { ListItemNodeProps } from './components/ListItemNode/ListItemNode';
|
|
291
294
|
export type { MarkdownCodeBlockNodeProps } from './components/MarkdownCodeBlockNode/MarkdownCodeBlockNode';
|
|
292
295
|
export type { TooltipPlacement, TooltipProps } from './components/Tooltip/Tooltip';
|
|
296
|
+
export type { CustomComponentDisplayMode, HtmlComponent, HtmlComponentMap, MarkstreamCustomComponent, StreamingComponent, StreamingComponentMap, } from './customComponents';
|
|
293
297
|
export * from './i18n/useSafeI18n';
|
|
294
298
|
export * from './renderers/renderNode';
|
|
295
299
|
export type { NodeRendererCodeBlockProps, NodeRendererProps } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ParsedNode } from 'stream-markdown-parser';
|
|
2
2
|
import { RenderContext } from '../types';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
|
-
export declare function renderNode(node: ParsedNode, key: React.Key, ctx: RenderContext):
|
|
4
|
+
export declare function renderNode(node: ParsedNode, key: React.Key, ctx: RenderContext): any;
|
|
@@ -2,6 +2,7 @@ import { DefinitionItemNode as DefinitionItemNodeType, ListItemNode as ListItemN
|
|
|
2
2
|
import { HtmlPreviewFrameProps } from '../components/CodeBlockNode/HtmlPreviewFrame';
|
|
3
3
|
import { MarkdownCodeBlockNodeProps } from '../components/MarkdownCodeBlockNode/MarkdownCodeBlockNode';
|
|
4
4
|
import { TooltipProps } from '../components/Tooltip/Tooltip';
|
|
5
|
+
import { HtmlComponentMap, StreamingComponentMap } from '../customComponents';
|
|
5
6
|
import { NodeRendererProps, RenderContext } from '../types';
|
|
6
7
|
import { CodeBlockNodeProps, D2BlockNodeProps, ImageNodeProps, InfographicBlockNodeProps, LinkNodeProps, MathBlockNodeProps, MathInlineNodeProps, MermaidBlockNodeProps, PreCodeNodeProps } from '../types/component-props';
|
|
7
8
|
import { NodeComponentProps } from '../types/node-component';
|
|
@@ -151,6 +152,9 @@ export declare function HtmlBlockNode(props: NodeComponentProps<{
|
|
|
151
152
|
export declare function HtmlInlineNode(props: NodeComponentProps<{
|
|
152
153
|
type: 'html_inline';
|
|
153
154
|
content?: string;
|
|
155
|
+
tag?: string;
|
|
156
|
+
attrs?: [string, string | null][] | null;
|
|
157
|
+
children?: ParsedNode[];
|
|
154
158
|
}>): React.JSX.Element;
|
|
155
159
|
export declare function VmrContainerNode(props: NodeComponentProps<{
|
|
156
160
|
type: 'vmr_container';
|
|
@@ -163,7 +167,7 @@ export declare function HtmlPreviewFrame(_props: HtmlPreviewFrameProps): any;
|
|
|
163
167
|
export declare function FallbackComponent(props: NodeComponentProps<{
|
|
164
168
|
type: string;
|
|
165
169
|
}>): React.JSX.Element;
|
|
166
|
-
export declare function renderNode(node: ParsedNode, key: React.Key, ctx: RenderContext):
|
|
167
|
-
export declare function NodeRenderer(props: NodeRendererProps): React.JSX.Element;
|
|
170
|
+
export declare function renderNode(node: ParsedNode, key: React.Key, ctx: RenderContext): any;
|
|
171
|
+
export declare function NodeRenderer<TStreamingComponents extends StreamingComponentMap = StreamingComponentMap, THtmlComponents extends Record<string, any> = HtmlComponentMap>(props: NodeRendererProps<TStreamingComponents, THtmlComponents>): React.JSX.Element;
|
|
168
172
|
export { CodeBlockNode as ReactCodeBlockNode };
|
|
169
173
|
export default NodeRenderer;
|
package/dist/types/server.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export type { LinkNodeStyleProps } from './components/LinkNode/LinkNode';
|
|
|
3
3
|
export type { ListItemNodeProps } from './components/ListItemNode/ListItemNode';
|
|
4
4
|
export type { MarkdownCodeBlockNodeProps } from './components/MarkdownCodeBlockNode/MarkdownCodeBlockNode';
|
|
5
5
|
export type { TooltipPlacement, TooltipProps } from './components/Tooltip/Tooltip';
|
|
6
|
-
export { clearGlobalCustomComponents, getCustomComponentDisplay, getCustomNodeComponents, removeCustomComponents, setCustomComponents, withMarkstreamComponentDisplay, } from './customComponents';
|
|
7
|
-
export type { CustomComponentDisplayMode, MarkstreamCustomComponent } from './customComponents';
|
|
6
|
+
export { clearGlobalCustomComponents, defineHtmlComponents, defineStreamingComponents, getCustomComponentDisplay, getCustomNodeComponents, removeCustomComponents, setCustomComponents, withMarkstreamComponentDisplay, } from './customComponents';
|
|
7
|
+
export type { CustomComponentDisplayMode, HtmlComponent, HtmlComponentMap, MarkstreamCustomComponent, StreamingComponent, StreamingComponentMap, } from './customComponents';
|
|
8
8
|
export { AdmonitionNode } from './server-renderer';
|
|
9
9
|
export { BlockquoteNode } from './server-renderer';
|
|
10
10
|
export { CheckboxNode } from './server-renderer';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ComponentType } from 'react';
|
|
2
2
|
import { BaseNode, HtmlPolicy, MarkdownIt, ParsedNode, ParseOptions } from 'stream-markdown-parser';
|
|
3
|
-
import { CustomComponentMap } from './customComponents';
|
|
3
|
+
import { CustomComponentMap, HtmlComponentDefinitions, HtmlComponentMap, StreamingComponentDefinitions, StreamingComponentMap } from './customComponents';
|
|
4
4
|
import { SmoothMarkdownStreamOptions } from './hooks/useSmoothMarkdownStream';
|
|
5
5
|
import { CodeBlockMonacoOptions, CodeBlockMonacoTheme, CodeBlockNodeProps, CodeBlockPreviewPayload, D2BlockNodeProps, InfographicBlockNodeProps, MermaidBlockNodeProps, ShikiCodeBlockProps } from './types/component-props';
|
|
6
6
|
type NodeRendererCodeBlockThemes = CodeBlockNodeProps['themes'] | ShikiCodeBlockProps['themes'];
|
|
7
7
|
export type NodeRendererCodeBlockProps = Partial<Omit<CodeBlockNodeProps, 'node' | 'themes'>> & Partial<Omit<ShikiCodeBlockProps, 'themes'>> & {
|
|
8
8
|
themes?: NodeRendererCodeBlockThemes;
|
|
9
9
|
} & Record<string, unknown>;
|
|
10
|
-
export interface NodeRendererProps {
|
|
10
|
+
export interface NodeRendererProps<TStreamingComponents extends Record<string, ComponentType<any>> = StreamingComponentMap, THtmlComponents extends Record<string, any> = HtmlComponentMap> {
|
|
11
11
|
content?: string;
|
|
12
12
|
nodes?: readonly BaseNode[] | null;
|
|
13
13
|
/**
|
|
@@ -17,6 +17,8 @@ export interface NodeRendererProps {
|
|
|
17
17
|
final?: boolean;
|
|
18
18
|
parseOptions?: ParseOptions;
|
|
19
19
|
customMarkdownIt?: (md: MarkdownIt) => MarkdownIt;
|
|
20
|
+
streamingComponents?: TStreamingComponents & StreamingComponentDefinitions<TStreamingComponents>;
|
|
21
|
+
htmlComponents?: THtmlComponents & HtmlComponentDefinitions<THtmlComponents>;
|
|
20
22
|
/** Log parse/render timing stats (dev only). */
|
|
21
23
|
debugPerformance?: boolean;
|
|
22
24
|
/**
|
|
@@ -86,6 +88,7 @@ export interface NodeRendererProps {
|
|
|
86
88
|
export interface RenderContext {
|
|
87
89
|
customId?: string;
|
|
88
90
|
isDark?: boolean;
|
|
91
|
+
final?: boolean;
|
|
89
92
|
indexKey?: string;
|
|
90
93
|
typewriter?: boolean;
|
|
91
94
|
/** Enable/disable fade animations. Default: true */
|
|
@@ -93,6 +96,8 @@ export interface RenderContext {
|
|
|
93
96
|
textStreamState?: Map<string, string>;
|
|
94
97
|
streamRenderVersion?: number;
|
|
95
98
|
customComponents?: CustomComponentMap;
|
|
99
|
+
streamingComponents?: StreamingComponentMap;
|
|
100
|
+
htmlComponents?: HtmlComponentMap;
|
|
96
101
|
customHtmlTags?: readonly string[];
|
|
97
102
|
htmlPolicy?: HtmlPolicy;
|
|
98
103
|
codeBlockProps?: NodeRendererCodeBlockProps;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
1
2
|
import { ParsedNode } from 'stream-markdown-parser';
|
|
2
|
-
import { CustomComponentDisplayMode
|
|
3
|
+
import { CustomComponentDisplayMode } from '../customComponents';
|
|
3
4
|
export interface ResolvedCustomHtmlTag {
|
|
4
5
|
tag: string;
|
|
5
6
|
isWhitelisted: boolean;
|
|
6
|
-
component:
|
|
7
|
+
component: ComponentType<any> | null;
|
|
7
8
|
display: CustomComponentDisplayMode | undefined;
|
|
8
9
|
}
|
|
9
10
|
export declare function resolveCustomHtmlTag(node: Pick<ParsedNode, 'type'> & {
|
|
10
11
|
tag?: string | null;
|
|
11
12
|
content?: unknown;
|
|
12
|
-
}, customComponents:
|
|
13
|
+
}, customComponents: Record<string, ComponentType<any>>, customHtmlTags?: readonly string[]): ResolvedCustomHtmlTag | null;
|
|
13
14
|
export declare function isParagraphBreakingCustomHtmlNode(node: Pick<ParsedNode, 'type'> & {
|
|
14
15
|
tag?: string | null;
|
|
15
16
|
content?: unknown;
|
|
16
|
-
}, customComponents:
|
|
17
|
+
}, customComponents: Record<string, ComponentType<any>>, customHtmlTags?: readonly string[]): boolean;
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { HtmlPolicy, sanitizeHtmlAttrs as sanitizeHtmlAttrsBase, tokenizeHtml as tokenizeHtmlBase } from 'stream-markdown-parser';
|
|
3
|
-
import {
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import { HtmlPolicy, ParsedNode, sanitizeHtmlAttrs as sanitizeHtmlAttrsBase, tokenizeHtml as tokenizeHtmlBase } from 'stream-markdown-parser';
|
|
3
|
+
import { RenderContext, RenderNodeFn } from '../types';
|
|
4
4
|
export type { HtmlToken } from 'stream-markdown-parser';
|
|
5
|
+
type HtmlReactComponentMap = Record<string, ComponentType<any>>;
|
|
6
|
+
type HtmlReactPropComponentMap = Record<string, ComponentType<any>>;
|
|
7
|
+
type HtmlReactNodeComponentMap = Record<string, ComponentType<any>>;
|
|
8
|
+
interface HtmlToReactOptions {
|
|
9
|
+
ctx?: RenderContext;
|
|
10
|
+
keyPrefix?: string;
|
|
11
|
+
nodeComponents?: HtmlReactNodeComponentMap;
|
|
12
|
+
propComponents?: HtmlReactPropComponentMap;
|
|
13
|
+
renderNode?: RenderNodeFn;
|
|
14
|
+
sourceNode?: ParsedNode;
|
|
15
|
+
}
|
|
5
16
|
export declare function normalizeDomAttrs(attrs: Record<string, string>): Record<string, unknown>;
|
|
6
17
|
export declare const tokenizeHtml: typeof tokenizeHtmlBase;
|
|
7
18
|
export declare const sanitizeHtmlAttrs: typeof sanitizeHtmlAttrsBase;
|
|
8
|
-
export declare function isCustomHtmlComponent(tagName: string, customComponents:
|
|
9
|
-
export declare function hasCustomHtmlComponents(content: string, customComponents:
|
|
10
|
-
export declare function parseHtmlToReactNodes(content: string, customComponents:
|
|
19
|
+
export declare function isCustomHtmlComponent(tagName: string, customComponents: HtmlReactComponentMap): boolean;
|
|
20
|
+
export declare function hasCustomHtmlComponents(content: string, customComponents: HtmlReactComponentMap): boolean;
|
|
21
|
+
export declare function parseHtmlToReactNodes(content: string, customComponents: HtmlReactComponentMap, htmlPolicy?: HtmlPolicy, options?: HtmlToReactOptions): ReactNode[] | null;
|