site/node_modules/shiki/dist/langs/mdx.mjs

7 lines
129 KiB
JavaScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
const lang = Object.freeze({ "displayName": "MDX", "fileTypes": ["mdx"], "name": "mdx", "patterns": [{ "include": "#markdown-frontmatter" }, { "include": "#markdown-sections" }], "repository": { "commonmark-attention": { "patterns": [{ "match": "(?<=\\S)\\*{3,}|\\*{3,}(?=\\S)", "name": "string.other.strong.emphasis.asterisk.mdx" }, { "match": "(?<=[\\p{L}\\p{N}])_{3,}(?![\\p{L}\\p{N}])|(?<=\\p{P})_{3,}|(?<![\\p{L}\\p{N}]|\\p{P})_{3,}(?!\\s)", "name": "string.other.strong.emphasis.underscore.mdx" }, { "match": "(?<=\\S)\\*{2}|\\*{2}(?=\\S)", "name": "string.other.strong.asterisk.mdx" }, { "match": "(?<=[\\p{L}\\p{N}])_{2}(?![\\p{L}\\p{N}])|(?<=\\p{P})_{2}|(?<![\\p{L}\\p{N}]|\\p{P})_{2}(?!\\s)", "name": "string.other.strong.underscore.mdx" }, { "match": "(?<=\\S)\\*|\\*(?=\\S)", "name": "string.other.emphasis.asterisk.mdx" }, { "match": "(?<=[\\p{L}\\p{N}])_(?![\\p{L}\\p{N}])|(?<=\\p{P})_|(?<![\\p{L}\\p{N}]|\\p{P})_(?!\\s)", "name": "string.other.emphasis.underscore.mdx" }] }, "commonmark-block-quote": { "begin": "(?:^|\\G)[\\t ]*(>)[ ]?", "beginCaptures": { "0": { "name": "markup.quote.mdx" }, "1": { "name": "punctuation.definition.quote.begin.mdx" } }, "name": "markup.quote.mdx", "patterns": [{ "include": "#markdown-sections" }], "while": "(>)[ ]?", "whileCaptures": { "0": { "name": "markup.quote.mdx" }, "1": { "name": "punctuation.definition.quote.begin.mdx" } } }, "commonmark-character-escape": { "match": "\\\\(?:[!\"#$%&'()*+,\\-.\\/:;<=>?@\\[\\\\\\]^_`{|}~])", "name": "constant.language.character-escape.mdx" }, "commonmark-character-reference": { "patterns": [{ "include": "#whatwg-html-data-character-reference-named-terminated" }, { "captures": { "1": { "name": "punctuation.definition.character-reference.begin.html" }, "2": { "name": "punctuation.definition.character-reference.numeric.html" }, "3": { "name": "punctuation.definition.character-reference.numeric.hexadecimal.html" }, "4": { "name": "constant.numeric.integer.hexadecimal.html" }, "5": { "name": "punctuation.definition.character-reference.end.html" } }, "match": "(&)(#)([Xx])([0-9A-Fa-f]{1,6})(;)", "name": "constant.language.character-reference.numeric.hexadecimal.html" }, { "captures": { "1": { "name": "punctuation.definition.character-reference.begin.html" }, "2": { "name": "punctuation.definition.character-reference.numeric.html" }, "3": { "name": "constant.numeric.integer.decimal.html" }, "4": { "name": "punctuation.definition.character-reference.end.html" } }, "match": "(&)(#)([0-9]{1,7})(;)", "name": "constant.language.character-reference.numeric.decimal.html" }] }, "commonmark-code-fenced": { "patterns": [{ "include": "#commonmark-code-fenced-apib" }, { "include": "#commonmark-code-fenced-asciidoc" }, { "include": "#commonmark-code-fenced-c" }, { "include": "#commonmark-code-fenced-clojure" }, { "include": "#commonmark-code-fenced-coffee" }, { "include": "#commonmark-code-fenced-console" }, { "include": "#commonmark-code-fenced-cpp" }, { "include": "#commonmark-code-fenced-cs" }, { "include": "#commonmark-code-fenced-css" }, { "include": "#commonmark-code-fenced-diff" }, { "include": "#commonmark-code-fenced-dockerfile" }, { "include": "#commonmark-code-fenced-elixir" }, { "include": "#commonmark-code-fenced-elm" }, { "include": "#commonmark-code-fenced-erlang" }, { "include": "#commonmark-code-fenced-gitconfig" }, { "include": "#commonmark-code-fenced-go" }, { "include": "#commonmark-code-fenced-graphql" }, { "include": "#commonmark-code-fenced-haskell" }, { "include": "#commonmark-code-fenced-html" }, { "include": "#commonmark-code-fenced-ini" }, { "include": "#commonmark-code-fenced-java" }, { "include": "#commonmark-code-fenced-js" }, { "include": "#commonmark-code-fenced-json" }, { "include": "#commonmark-code-fenced-julia" }, { "include": "#commonmark-code-fenced-kotlin" }, { "include": "#commonmark-code-fenced-less" }, { "include": "#commonmark-code-fenced-less" }, { "include": "#commonmark-code-fenced-lua" }, { "include": "#commonmark-code-fenced-makefile" }, { "include": "#commonmark-code-fenced-md" }, { "include": "#commonmark-code-fenced-
var mdx = [
lang
];
export { mdx as default };