markdown-flow-ui 0.1.69-beta.8 → 0.1.70-beta.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/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/core.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arduino.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csharp.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/diff.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/graphql.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ini.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/kotlin.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/latex.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/less.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/makefile.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/objectivec.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/perl.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php-template.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python-repl.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/r.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruby.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbnet.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vhdl.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wasm.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.js +8 -6
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.js.map +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.js +80 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules}/lowlight/lib/index.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/fullscreen.js +19 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/fullscreen.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.js +11 -11
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.js.map +1 -1
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules}/mdast-util-gfm-autolink-literal/lib/index.js +4 -4
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules}/mdast-util-gfm-footnote/lib/index.js +2 -2
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules}/mdast-util-gfm-table/lib/index.js +3 -3
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules}/mdast-util-gfm-task-list-item/lib/index.js +2 -2
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules}/mdast-util-gfm-task-list-item/lib/index.js.map +1 -1
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules}/mdast-util-gfm/lib/index.js +5 -5
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules}/mdast-util-phrasing/lib/index.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/code.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/root.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/encode-info.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +14 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules}/micromark-extension-gfm-autolink-literal/lib/syntax.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules}/micromark-extension-gfm-footnote/lib/syntax.js +4 -4
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules}/micromark-extension-gfm-strikethrough/lib/syntax.js +3 -3
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/edit-map.js.map +1 -1
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/infer.js.map +1 -1
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/syntax.js +2 -2
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/syntax.js.map +1 -1
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules}/micromark-extension-gfm-task-list-item/lib/syntax.js +2 -2
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js +19 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rc-input@1.8.0_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-input/es/BaseInput.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/ResizableTextArea.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/TextArea.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/index.js +1 -1
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-highlight@7.0.2/node_modules}/rehype-highlight/lib/index.js +4 -4
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/rehype-highlight@7.0.2/node_modules/rehype-highlight/lib/index.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/index.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/interaction-parser.js +30 -51
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/interaction-parser.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/remark-custom-variable.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-custom-variable.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-flow.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/remark-interaction.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.6/node_modules/remark-flow/dist/remark-interaction.js.map +1 -0
- package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-gfm@4.0.1/node_modules}/remark-gfm/lib/index.js +2 -2
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js.map +1 -0
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js +1 -1
- package/dist/_virtual/core.js +1 -1
- package/dist/_virtual/index.js +1 -1
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index3.js +4 -5
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/_virtual/index4.js +5 -4
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/_virtual/index5.js +4 -4
- package/dist/_virtual/index6.js +5 -5
- package/dist/_virtual/index8.js +2 -2
- package/dist/assets/markdown-flow-ui.css +1 -1
- package/dist/components/ContentRender/ContentBlackboard.d.ts +9 -0
- package/dist/components/ContentRender/ContentBlackboard.js +126 -0
- package/dist/components/ContentRender/ContentBlackboard.js.map +1 -0
- package/dist/components/ContentRender/ContentHtml.d.ts +22 -0
- package/dist/components/ContentRender/ContentHtml.js +108 -0
- package/dist/components/ContentRender/ContentHtml.js.map +1 -0
- package/dist/components/ContentRender/ContentRender.d.ts +16 -10
- package/dist/components/ContentRender/ContentRender.js +126 -103
- package/dist/components/ContentRender/ContentRender.js.map +1 -1
- package/dist/components/ContentRender/ContentRender.stories.d.ts +12 -1
- package/dist/components/ContentRender/index.d.ts +1 -0
- package/dist/components/ContentRender/utils/content-html-stream.d.ts +8 -0
- package/dist/components/ContentRender/utils/content-html-stream.js +18 -0
- package/dist/components/ContentRender/utils/content-html-stream.js.map +1 -0
- package/dist/components/ContentRender/utils/highlight-languages.js +22 -22
- package/dist/components/ContentRender/utils/mermaid-parse.d.ts +4 -0
- package/dist/components/ContentRender/utils/mermaid-parse.js +112 -65
- package/dist/components/ContentRender/utils/mermaid-parse.js.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +7 -0
- package/dist/components/MarkdownFlow/MarkdownFlow.js +28 -21
- package/dist/components/MarkdownFlow/MarkdownFlow.js.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.stories.d.ts +3 -1
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.js +1 -1
- package/dist/components/ui/inputGroup/textarea.js +1 -1
- package/dist/components/ui/tooltip.js +2 -2
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/markdown-flow-ui-lib.css +1 -1
- package/package.json +1 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/index.js.map +0 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/interaction-parser.js.map +0 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/remark-custom-variable.js.map +0 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/remark-flow.js.map +0 -1
- package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/remark-flow@0.1.3-beta.0/node_modules/remark-flow/dist/remark-interaction.js.map +0 -1
- package/dist/node_modules/ccount/index.js.map +0 -1
- package/dist/node_modules/devlop/lib/default.js +0 -6
- package/dist/node_modules/devlop/lib/default.js.map +0 -1
- package/dist/node_modules/escape-string-regexp/index.js +0 -9
- package/dist/node_modules/escape-string-regexp/index.js.map +0 -1
- package/dist/node_modules/hast-util-is-element/lib/index.js +0 -66
- package/dist/node_modules/hast-util-is-element/lib/index.js.map +0 -1
- package/dist/node_modules/hast-util-to-text/lib/index.js +0 -227
- package/dist/node_modules/hast-util-to-text/lib/index.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/arduino.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/bash.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/c.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/cpp.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/csharp.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/css.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/diff.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/go.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/graphql.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/ini.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/java.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/javascript.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/json.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/kotlin.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/latex.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/less.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/lua.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/makefile.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/markdown.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/objectivec.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/perl.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/php-template.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/php.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/plaintext.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/python-repl.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/python.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/r.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/ruby.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/rust.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/scss.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/shell.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/sql.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/swift.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/typescript.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/vbnet.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/vhdl.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/wasm.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/xml.js.map +0 -1
- package/dist/node_modules/highlight.js/es/languages/yaml.js.map +0 -1
- package/dist/node_modules/highlight.js/lib/core.js.map +0 -1
- package/dist/node_modules/longest-streak/index.js +0 -13
- package/dist/node_modules/longest-streak/index.js.map +0 -1
- package/dist/node_modules/lowlight/lib/common.js +0 -80
- package/dist/node_modules/lowlight/lib/common.js.map +0 -1
- package/dist/node_modules/lowlight/lib/index.js.map +0 -1
- package/dist/node_modules/markdown-table/index.js.map +0 -1
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +0 -71
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-gfm/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-phrasing/lib/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +0 -14
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js.map +0 -1
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js.map +0 -1
- package/dist/node_modules/mdast-util-to-string/lib/index.js +0 -30
- package/dist/node_modules/mdast-util-to-string/lib/index.js.map +0 -1
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -19
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
- package/dist/node_modules/micromark-extension-gfm/index.js +0 -19
- package/dist/node_modules/micromark-extension-gfm/index.js.map +0 -1
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js.map +0 -1
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js.map +0 -1
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js.map +0 -1
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js.map +0 -1
- package/dist/node_modules/micromark-factory-space/index.js +0 -16
- package/dist/node_modules/micromark-factory-space/index.js.map +0 -1
- package/dist/node_modules/micromark-util-character/index.js +0 -35
- package/dist/node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/node_modules/micromark-util-chunked/index.js +0 -13
- package/dist/node_modules/micromark-util-chunked/index.js.map +0 -1
- package/dist/node_modules/micromark-util-classify-character/index.js +0 -11
- package/dist/node_modules/micromark-util-classify-character/index.js.map +0 -1
- package/dist/node_modules/micromark-util-combine-extensions/index.js +0 -37
- package/dist/node_modules/micromark-util-combine-extensions/index.js.map +0 -1
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +0 -7
- package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
- package/dist/node_modules/micromark-util-resolve-all/index.js +0 -13
- package/dist/node_modules/micromark-util-resolve-all/index.js.map +0 -1
- package/dist/node_modules/rehype-highlight/lib/index.js.map +0 -1
- package/dist/node_modules/remark-gfm/lib/index.js.map +0 -1
- package/dist/node_modules/unist-util-find-after/lib/index.js +0 -33
- package/dist/node_modules/unist-util-find-after/lib/index.js.map +0 -1
- package/dist/node_modules/unist-util-is/lib/index.js +0 -85
- package/dist/node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/node_modules/unist-util-visit/lib/index.js +0 -17
- package/dist/node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -7
- package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +0 -57
- package/dist/node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/ccount@2.0.1/node_modules}/ccount/index.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/core.js.map +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/arduino.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/bash.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/c.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/cpp.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/csharp.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/css.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/diff.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/go.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/graphql.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/ini.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/java.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/javascript.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/json.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/kotlin.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/latex.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/less.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/lua.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/makefile.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/markdown.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/objectivec.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/perl.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/php-template.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/php.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/plaintext.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/python-repl.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/python.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/r.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/ruby.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/rust.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/scss.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/shell.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/sql.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/swift.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/typescript.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/vbnet.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/vhdl.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/wasm.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/xml.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/es/languages/yaml.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/highlight.js@11.11.1/node_modules}/highlight.js/lib/core.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/markdown-table@3.0.4/node_modules}/markdown-table/index.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules}/mdast-util-gfm-strikethrough/lib/index.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/blockquote.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/break.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/definition.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/emphasis.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/heading.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/html.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/image-reference.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/image.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/index.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/inline-code.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/link-reference.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/link.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/list-item.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/list.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/paragraph.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/strong.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/text.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/handle/thematic-break.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-bullet-other.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-bullet.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-emphasis.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-fence.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-list-item-indent.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-quote.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-rule-repetition.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-rule.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/check-strong.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/encode-character-reference.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/format-code-as-indented.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules}/mdast-util-to-markdown/lib/util/pattern-in-scope.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/edit-map.js +0 -0
- /package/dist/{node_modules → Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules}/micromark-extension-gfm-table/lib/infer.js +0 -0
- /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/index.js +0 -0
- /package/dist/Documents/ai-shifu/markdown-flow-ui/node_modules/.pnpm/{remark-flow@0.1.3-beta.0 → remark-flow@0.1.6}/node_modules/remark-flow/dist/remark-flow.js +0 -0
- /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@codemirror/state/dist/index.js +0 -0
- /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@codemirror/state/dist/index.js.map +0 -0
- /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@marijn/find-cluster-break/src/index.js +0 -0
- /package/dist/{Documents/ai-shifu/markdown-flow-ui/node_modules → node_modules}/@marijn/find-cluster-break/src/index.js.map +0 -0
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import r from "../../highlight.js/es/languages/arduino.js";
|
|
2
|
-
import o from "../../highlight.js/es/languages/bash.js";
|
|
3
|
-
import m from "../../highlight.js/es/languages/c.js";
|
|
4
|
-
import p from "../../highlight.js/es/languages/cpp.js";
|
|
5
|
-
import t from "../../highlight.js/es/languages/csharp.js";
|
|
6
|
-
import i from "../../highlight.js/es/languages/css.js";
|
|
7
|
-
import f from "../../highlight.js/es/languages/diff.js";
|
|
8
|
-
import s from "../../highlight.js/es/languages/go.js";
|
|
9
|
-
import a from "../../highlight.js/es/languages/graphql.js";
|
|
10
|
-
import e from "../../highlight.js/es/languages/ini.js";
|
|
11
|
-
import l from "../../highlight.js/es/languages/java.js";
|
|
12
|
-
import n from "../../highlight.js/es/languages/javascript.js";
|
|
13
|
-
import c from "../../highlight.js/es/languages/json.js";
|
|
14
|
-
import h from "../../highlight.js/es/languages/kotlin.js";
|
|
15
|
-
import y from "../../highlight.js/es/languages/less.js";
|
|
16
|
-
import b from "../../highlight.js/es/languages/lua.js";
|
|
17
|
-
import j from "../../highlight.js/es/languages/makefile.js";
|
|
18
|
-
import u from "../../highlight.js/es/languages/markdown.js";
|
|
19
|
-
import v from "../../highlight.js/es/languages/objectivec.js";
|
|
20
|
-
import d from "../../highlight.js/es/languages/perl.js";
|
|
21
|
-
import g from "../../highlight.js/es/languages/php.js";
|
|
22
|
-
import k from "../../highlight.js/es/languages/php-template.js";
|
|
23
|
-
import w from "../../highlight.js/es/languages/plaintext.js";
|
|
24
|
-
import x from "../../highlight.js/es/languages/python.js";
|
|
25
|
-
import q from "../../highlight.js/es/languages/python-repl.js";
|
|
26
|
-
import R from "../../highlight.js/es/languages/r.js";
|
|
27
|
-
import T from "../../highlight.js/es/languages/ruby.js";
|
|
28
|
-
import z from "../../highlight.js/es/languages/rust.js";
|
|
29
|
-
import A from "../../highlight.js/es/languages/scss.js";
|
|
30
|
-
import B from "../../highlight.js/es/languages/shell.js";
|
|
31
|
-
import C from "../../highlight.js/es/languages/sql.js";
|
|
32
|
-
import D from "../../highlight.js/es/languages/swift.js";
|
|
33
|
-
import E from "../../highlight.js/es/languages/typescript.js";
|
|
34
|
-
import F from "../../highlight.js/es/languages/vbnet.js";
|
|
35
|
-
import G from "../../highlight.js/es/languages/wasm.js";
|
|
36
|
-
import H from "../../highlight.js/es/languages/xml.js";
|
|
37
|
-
import I from "../../highlight.js/es/languages/yaml.js";
|
|
38
|
-
const gr = {
|
|
39
|
-
arduino: r,
|
|
40
|
-
bash: o,
|
|
41
|
-
c: m,
|
|
42
|
-
cpp: p,
|
|
43
|
-
csharp: t,
|
|
44
|
-
css: i,
|
|
45
|
-
diff: f,
|
|
46
|
-
go: s,
|
|
47
|
-
graphql: a,
|
|
48
|
-
ini: e,
|
|
49
|
-
java: l,
|
|
50
|
-
javascript: n,
|
|
51
|
-
json: c,
|
|
52
|
-
kotlin: h,
|
|
53
|
-
less: y,
|
|
54
|
-
lua: b,
|
|
55
|
-
makefile: j,
|
|
56
|
-
markdown: u,
|
|
57
|
-
objectivec: v,
|
|
58
|
-
perl: d,
|
|
59
|
-
php: g,
|
|
60
|
-
"php-template": k,
|
|
61
|
-
plaintext: w,
|
|
62
|
-
python: x,
|
|
63
|
-
"python-repl": q,
|
|
64
|
-
r: R,
|
|
65
|
-
ruby: T,
|
|
66
|
-
rust: z,
|
|
67
|
-
scss: A,
|
|
68
|
-
shell: B,
|
|
69
|
-
sql: C,
|
|
70
|
-
swift: D,
|
|
71
|
-
typescript: E,
|
|
72
|
-
vbnet: F,
|
|
73
|
-
wasm: G,
|
|
74
|
-
xml: H,
|
|
75
|
-
yaml: I
|
|
76
|
-
};
|
|
77
|
-
export {
|
|
78
|
-
gr as grammars
|
|
79
|
-
};
|
|
80
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sources":["../../../../../../../node_modules/lowlight/lib/common.js"],"sourcesContent":["/**\n * @import {LanguageFn} from 'highlight.js'\n */\n\nimport arduino from 'highlight.js/lib/languages/arduino'\nimport bash from 'highlight.js/lib/languages/bash'\nimport c from 'highlight.js/lib/languages/c'\nimport cpp from 'highlight.js/lib/languages/cpp'\nimport csharp from 'highlight.js/lib/languages/csharp'\nimport css from 'highlight.js/lib/languages/css'\nimport diff from 'highlight.js/lib/languages/diff'\nimport go from 'highlight.js/lib/languages/go'\nimport graphql from 'highlight.js/lib/languages/graphql'\nimport ini from 'highlight.js/lib/languages/ini'\nimport java from 'highlight.js/lib/languages/java'\nimport javascript from 'highlight.js/lib/languages/javascript'\nimport json from 'highlight.js/lib/languages/json'\nimport kotlin from 'highlight.js/lib/languages/kotlin'\nimport less from 'highlight.js/lib/languages/less'\nimport lua from 'highlight.js/lib/languages/lua'\nimport makefile from 'highlight.js/lib/languages/makefile'\nimport markdown from 'highlight.js/lib/languages/markdown'\nimport objectivec from 'highlight.js/lib/languages/objectivec'\nimport perl from 'highlight.js/lib/languages/perl'\nimport php from 'highlight.js/lib/languages/php'\nimport phpTemplate from 'highlight.js/lib/languages/php-template'\nimport plaintext from 'highlight.js/lib/languages/plaintext'\nimport python from 'highlight.js/lib/languages/python'\nimport pythonRepl from 'highlight.js/lib/languages/python-repl'\nimport r from 'highlight.js/lib/languages/r'\nimport ruby from 'highlight.js/lib/languages/ruby'\nimport rust from 'highlight.js/lib/languages/rust'\nimport scss from 'highlight.js/lib/languages/scss'\nimport shell from 'highlight.js/lib/languages/shell'\nimport sql from 'highlight.js/lib/languages/sql'\nimport swift from 'highlight.js/lib/languages/swift'\nimport typescript from 'highlight.js/lib/languages/typescript'\nimport vbnet from 'highlight.js/lib/languages/vbnet'\nimport wasm from 'highlight.js/lib/languages/wasm'\nimport xml from 'highlight.js/lib/languages/xml'\nimport yaml from 'highlight.js/lib/languages/yaml'\n\n/**\n * Map of grammars.\n *\n * @type {Record<string, LanguageFn>}\n */\nexport const grammars = {\n arduino,\n bash,\n c,\n cpp,\n csharp,\n css,\n diff,\n go,\n graphql,\n ini,\n java,\n javascript,\n json,\n kotlin,\n less,\n lua,\n makefile,\n markdown,\n objectivec,\n perl,\n php,\n 'php-template': phpTemplate,\n plaintext,\n python,\n 'python-repl': pythonRepl,\n r,\n ruby,\n rust,\n scss,\n shell,\n sql,\n swift,\n typescript,\n vbnet,\n wasm,\n xml,\n yaml\n}\n"],"names":["grammars","arduino","bash","c","cpp","csharp","css","diff","go","graphql","ini","java","javascript","json","kotlin","less","lua","makefile","markdown","objectivec","perl","php","phpTemplate","plaintext","python","pythonRepl","r","ruby","rust","scss","shell","sql","swift","typescript","vbnet","wasm","xml","yaml"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CY,MAACA,KAAW;AAAA,EACtB,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,GAAAC;AAAA,EACA,KAAAC;AAAA,EACA,QAAAC;AAAA,EACA,KAAAC;AAAA,EACA,MAAAC;AAAA,EACA,IAAAC;AAAA,EACA,SAAAC;AAAA,EACA,KAAAC;AAAA,EACA,MAAAC;AAAA,EACA,YAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,KAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,MAAAC;AAAA,EACA,KAAAC;AAAA,EACA,gBAAgBC;AAAA,EAChB,WAAAC;AAAA,EACA,QAAAC;AAAA,EACA,eAAeC;AAAA,EACf,GAAAC;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,KAAAC;AAAA,EACA,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,KAAAC;AAAA,EACA,MAAAC;AACF;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/lowlight/lib/index.js"],"sourcesContent":["/**\n * @import {ElementContent, Element, RootData, Root} from 'hast'\n * @import {Emitter, HLJSOptions as HljsOptions, HighlightResult, LanguageFn} from 'highlight.js'\n */\n\n/**\n * @typedef {Object} ExtraOptions\n * Extra fields.\n * @property {ReadonlyArray<string> | null | undefined} [subset]\n * List of allowed languages (default: all registered languages).\n *\n * @typedef Options\n * Configuration for `highlight`.\n * @property {string | null | undefined} [prefix='hljs-']\n * Class prefix (default: `'hljs-'`).\n *\n * @typedef {Options & ExtraOptions} AutoOptions\n * Configuration for `highlightAuto`.\n */\n\nimport {ok as assert} from 'devlop'\nimport HighlightJs from 'highlight.js/lib/core'\n\n/** @type {AutoOptions} */\nconst emptyOptions = {}\n\nconst defaultPrefix = 'hljs-'\n\n/**\n * Create a `lowlight` instance.\n *\n * @param {Readonly<Record<string, LanguageFn>> | null | undefined} [grammars]\n * Grammars to add (optional).\n * @returns\n * Lowlight.\n */\nexport function createLowlight(grammars) {\n const high = HighlightJs.newInstance()\n\n if (grammars) {\n register(grammars)\n }\n\n return {\n highlight,\n highlightAuto,\n listLanguages,\n register,\n registerAlias,\n registered\n }\n\n /**\n * Highlight `value` (code) as `language` (name).\n *\n * @example\n * ```js\n * import {common, createLowlight} from 'lowlight'\n *\n * const lowlight = createLowlight(common)\n *\n * console.log(lowlight.highlight('css', 'em { color: red }'))\n * ```\n *\n * Yields:\n *\n * ```js\n * {type: 'root', children: [Array], data: {language: 'css', relevance: 3}}\n * ```\n *\n * @param {string} language\n * Programming language name.\n * @param {string} value\n * Code to highlight.\n * @param {Readonly<Options> | null | undefined} [options={}]\n * Configuration (optional).\n * @returns {Root}\n * Tree; with the following `data` fields: `language` (`string`), detected\n * programming language name; `relevance` (`number`), how sure lowlight is\n * that the given code is in the language.\n */\n function highlight(language, value, options) {\n assert(typeof language === 'string', 'expected `string` as `name`')\n assert(typeof value === 'string', 'expected `string` as `value`')\n const settings = options || emptyOptions\n const prefix =\n typeof settings.prefix === 'string' ? settings.prefix : defaultPrefix\n\n if (!high.getLanguage(language)) {\n throw new Error('Unknown language: `' + language + '` is not registered')\n }\n\n // See: <https://github.com/highlightjs/highlight.js/issues/3621#issuecomment-1528841888>\n high.configure({__emitter: HastEmitter, classPrefix: prefix})\n\n const result = /** @type {HighlightResult & {_emitter: HastEmitter}} */ (\n high.highlight(value, {ignoreIllegals: true, language})\n )\n\n // `highlight.js` seems to use this (currently) for broken grammars, so let’s\n // keep it in there just to be sure.\n /* c8 ignore next 5 */\n if (result.errorRaised) {\n throw new Error('Could not highlight with `Highlight.js`', {\n cause: result.errorRaised\n })\n }\n\n const root = result._emitter.root\n\n // Cast because it is always defined.\n const data = /** @type {RootData} */ (root.data)\n\n data.language = result.language\n data.relevance = result.relevance\n\n return root\n }\n\n /**\n * Highlight `value` (code) and guess its programming language.\n *\n * @example\n * ```js\n * import {common, createLowlight} from 'lowlight'\n *\n * const lowlight = createLowlight(common)\n *\n * console.log(lowlight.highlightAuto('\"hello, \" + name + \"!\"'))\n * ```\n *\n * Yields:\n *\n * ```js\n * {type: 'root', children: [Array], data: {language: 'arduino', relevance: 2}}\n * ```\n *\n * @param {string} value\n * Code to highlight.\n * @param {Readonly<AutoOptions> | null | undefined} [options={}]\n * Configuration (optional).\n * @returns {Root}\n * Tree; with the following `data` fields: `language` (`string`), detected\n * programming language name; `relevance` (`number`), how sure lowlight is\n * that the given code is in the language.\n */\n function highlightAuto(value, options) {\n assert(typeof value === 'string', 'expected `string` as `value`')\n const settings = options || emptyOptions\n const subset = settings.subset || listLanguages()\n\n let index = -1\n let relevance = 0\n /** @type {Root | undefined} */\n let result\n\n while (++index < subset.length) {\n const name = subset[index]\n\n if (!high.getLanguage(name)) continue\n\n const current = highlight(name, value, options)\n\n if (\n current.data &&\n current.data.relevance !== undefined &&\n current.data.relevance > relevance\n ) {\n relevance = current.data.relevance\n result = current\n }\n }\n\n return (\n result || {\n type: 'root',\n children: [],\n data: {language: undefined, relevance}\n }\n )\n }\n\n /**\n * List registered languages.\n *\n * @example\n * ```js\n * import {createLowlight} from 'lowlight'\n * import markdown from 'highlight.js/lib/languages/markdown'\n *\n * const lowlight = createLowlight()\n *\n * console.log(lowlight.listLanguages()) // => []\n *\n * lowlight.register({markdown})\n *\n * console.log(lowlight.listLanguages()) // => ['markdown']\n * ```\n *\n * @returns {Array<string>}\n * Names of registered language.\n */\n function listLanguages() {\n return high.listLanguages()\n }\n\n /**\n * Register languages.\n *\n * @example\n * ```js\n * import {createLowlight} from 'lowlight'\n * import xml from 'highlight.js/lib/languages/xml'\n *\n * const lowlight = createLowlight()\n *\n * lowlight.register({xml})\n *\n * // Note: `html` is an alias for `xml`.\n * console.log(lowlight.highlight('html', '<em>Emphasis</em>'))\n * ```\n *\n * Yields:\n *\n * ```js\n * {type: 'root', children: [Array], data: {language: 'html', relevance: 2}}\n * ```\n *\n * @overload\n * @param {Readonly<Record<string, LanguageFn>>} grammars\n * @returns {undefined}\n *\n * @overload\n * @param {string} name\n * @param {LanguageFn} grammar\n * @returns {undefined}\n *\n * @param {Readonly<Record<string, LanguageFn>> | string} grammarsOrName\n * Grammars or programming language name.\n * @param {LanguageFn | undefined} [grammar]\n * Grammar, if with name.\n * @returns {undefined}\n * Nothing.\n */\n function register(grammarsOrName, grammar) {\n if (typeof grammarsOrName === 'string') {\n assert(grammar !== undefined, 'expected `grammar`')\n high.registerLanguage(grammarsOrName, grammar)\n } else {\n /** @type {string} */\n let name\n\n for (name in grammarsOrName) {\n if (Object.hasOwn(grammarsOrName, name)) {\n high.registerLanguage(name, grammarsOrName[name])\n }\n }\n }\n }\n\n /**\n * Register aliases.\n *\n * @example\n * ```js\n * import {createLowlight} from 'lowlight'\n * import markdown from 'highlight.js/lib/languages/markdown'\n *\n * const lowlight = createLowlight()\n *\n * lowlight.register({markdown})\n *\n * // lowlight.highlight('mdown', '<em>Emphasis</em>')\n * // ^ would throw: Error: Unknown language: `mdown` is not registered\n *\n * lowlight.registerAlias({markdown: ['mdown', 'mkdn', 'mdwn', 'ron']})\n * lowlight.highlight('mdown', '<em>Emphasis</em>')\n * // ^ Works!\n * ```\n *\n * @overload\n * @param {Readonly<Record<string, ReadonlyArray<string> | string>>} aliases\n * @returns {undefined}\n *\n * @overload\n * @param {string} language\n * @param {ReadonlyArray<string> | string} alias\n * @returns {undefined}\n *\n * @param {Readonly<Record<string, ReadonlyArray<string> | string>> | string} aliasesOrName\n * Map of programming language names to one or more aliases, or programming\n * language name.\n * @param {ReadonlyArray<string> | string | undefined} [alias]\n * One or more aliases for the programming language, if with `name`.\n * @returns {undefined}\n * Nothing.\n */\n function registerAlias(aliasesOrName, alias) {\n if (typeof aliasesOrName === 'string') {\n assert(alias !== undefined)\n high.registerAliases(\n // Note: copy needed because hljs doesn’t accept readonly arrays yet.\n typeof alias === 'string' ? alias : [...alias],\n {languageName: aliasesOrName}\n )\n } else {\n /** @type {string} */\n let key\n\n for (key in aliasesOrName) {\n if (Object.hasOwn(aliasesOrName, key)) {\n const aliases = aliasesOrName[key]\n high.registerAliases(\n // Note: copy needed because hljs doesn’t accept readonly arrays yet.\n typeof aliases === 'string' ? aliases : [...aliases],\n {languageName: key}\n )\n }\n }\n }\n }\n\n /**\n * Check whether an alias or name is registered.\n *\n * @example\n * ```js\n * import {createLowlight} from 'lowlight'\n * import javascript from 'highlight.js/lib/languages/javascript'\n *\n * const lowlight = createLowlight({javascript})\n *\n * console.log(lowlight.registered('funkyscript')) // => `false`\n *\n * lowlight.registerAlias({javascript: 'funkyscript'})\n * console.log(lowlight.registered('funkyscript')) // => `true`\n * ```\n *\n * @param {string} aliasOrName\n * Name of a language or alias for one.\n * @returns {boolean}\n * Whether `aliasOrName` is registered.\n */\n function registered(aliasOrName) {\n return Boolean(high.getLanguage(aliasOrName))\n }\n}\n\n/** @type {Emitter} */\nclass HastEmitter {\n /**\n * @param {Readonly<HljsOptions>} options\n * Configuration.\n * @returns\n * Instance.\n */\n constructor(options) {\n /** @type {HljsOptions} */\n this.options = options\n /** @type {Root} */\n this.root = {\n type: 'root',\n children: [],\n data: {language: undefined, relevance: 0}\n }\n /** @type {[Root, ...Array<Element>]} */\n this.stack = [this.root]\n }\n\n /**\n * @param {string} value\n * Text to add.\n * @returns {undefined}\n * Nothing.\n *\n */\n addText(value) {\n if (value === '') return\n\n const current = this.stack[this.stack.length - 1]\n const tail = current.children[current.children.length - 1]\n\n if (tail && tail.type === 'text') {\n tail.value += value\n } else {\n current.children.push({type: 'text', value})\n }\n }\n\n /**\n *\n * @param {unknown} rawName\n * Name to add.\n * @returns {undefined}\n * Nothing.\n */\n startScope(rawName) {\n this.openNode(String(rawName))\n }\n\n /**\n * @returns {undefined}\n * Nothing.\n */\n endScope() {\n this.closeNode()\n }\n\n /**\n * @param {HastEmitter} other\n * Other emitter.\n * @param {string} name\n * Name of the sublanguage.\n * @returns {undefined}\n * Nothing.\n */\n __addSublanguage(other, name) {\n const current = this.stack[this.stack.length - 1]\n // Assume only element content.\n const results = /** @type {Array<ElementContent>} */ (other.root.children)\n\n if (name) {\n current.children.push({\n type: 'element',\n tagName: 'span',\n properties: {className: [name]},\n children: results\n })\n } else {\n current.children.push(...results)\n }\n }\n\n /**\n * @param {string} name\n * Name to add.\n * @returns {undefined}\n * Nothing.\n */\n openNode(name) {\n const self = this\n // First “class” gets the prefix. Rest gets a repeated underscore suffix.\n // See: <https://github.com/highlightjs/highlight.js/commit/51806aa>\n // See: <https://github.com/wooorm/lowlight/issues/43>\n const className = name.split('.').map(function (d, i) {\n return i ? d + '_'.repeat(i) : self.options.classPrefix + d\n })\n const current = this.stack[this.stack.length - 1]\n /** @type {Element} */\n const child = {\n type: 'element',\n tagName: 'span',\n properties: {className},\n children: []\n }\n\n current.children.push(child)\n this.stack.push(child)\n }\n\n /**\n * @returns {undefined}\n * Nothing.\n */\n closeNode() {\n this.stack.pop()\n }\n\n /**\n * @returns {undefined}\n * Nothing.\n */\n finalize() {}\n\n /**\n * @returns {string}\n * Nothing.\n */\n toHTML() {\n return ''\n }\n}\n"],"names":["emptyOptions","defaultPrefix","createLowlight","grammars","high","HighlightJs","register","highlight","highlightAuto","listLanguages","registerAlias","registered","language","value","options","settings","prefix","HastEmitter","result","root","data","subset","index","relevance","name","current","grammarsOrName","grammar","aliasesOrName","alias","key","aliases","aliasOrName","tail","rawName","other","results","self","className","i","child"],"mappings":";AAwBA,MAAMA,IAAe,CAAA,GAEfC,IAAgB;AAUf,SAASC,EAAeC,GAAU;AACvC,QAAMC,IAAOC,EAAY,YAAW;AAEpC,SAAIF,KACFG,EAASH,CAAQ,GAGZ;AAAA,IACL,WAAAI;AAAA,IACA,eAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAH;AAAA,IACA,eAAAI;AAAA,IACA,YAAAC;AAAA,EACJ;AA+BE,WAASJ,EAAUK,GAAUC,GAAO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AAK,MAAM,KAAKA,CAAK;AAAA,EACvB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,YAAY;AACV,SAAK,MAAM,IAAG;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,WAAW;AAAA,EAAC;AAAA;AAAA;AAAA;AAAA;AAAA,EAMZ,SAAS;AACP,WAAO;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/markdown-table/index.js"],"sourcesContent":["// To do: next major: remove.\n/**\n * @typedef {Options} MarkdownTableOptions\n * Configuration.\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [alignDelimiters=true]\n * Whether to align the delimiters (default: `true`);\n * they are aligned by default:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * Pass `false` to make them staggered:\n *\n * ```markdown\n * | Alpha | B |\n * | - | - |\n * | C | Delta |\n * ```\n * @property {ReadonlyArray<string | null | undefined> | string | null | undefined} [align]\n * How to align columns (default: `''`);\n * one style for all columns or styles for their respective columns;\n * each style is either `'l'` (left), `'r'` (right), or `'c'` (center);\n * other values are treated as `''`, which doesn’t place the colon in the\n * alignment row but does align left;\n * *only the lowercased first character is used, so `Right` is fine.*\n * @property {boolean | null | undefined} [delimiterEnd=true]\n * Whether to end each row with the delimiter (default: `true`).\n *\n * > 👉 **Note**: please don’t use this: it could create fragile structures\n * > that aren’t understandable to some markdown parsers.\n *\n * When `true`, there are ending delimiters:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * When `false`, there are no ending delimiters:\n *\n * ```markdown\n * | Alpha | B\n * | ----- | -----\n * | C | Delta\n * ```\n * @property {boolean | null | undefined} [delimiterStart=true]\n * Whether to begin each row with the delimiter (default: `true`).\n *\n * > 👉 **Note**: please don’t use this: it could create fragile structures\n * > that aren’t understandable to some markdown parsers.\n *\n * When `true`, there are starting delimiters:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * When `false`, there are no starting delimiters:\n *\n * ```markdown\n * Alpha | B |\n * ----- | ----- |\n * C | Delta |\n * ```\n * @property {boolean | null | undefined} [padding=true]\n * Whether to add a space of padding between delimiters and cells\n * (default: `true`).\n *\n * When `true`, there is padding:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * When `false`, there is no padding:\n *\n * ```markdown\n * |Alpha|B |\n * |-----|-----|\n * |C |Delta|\n * ```\n * @property {((value: string) => number) | null | undefined} [stringLength]\n * Function to detect the length of table cell content (optional);\n * this is used when aligning the delimiters (`|`) between table cells;\n * full-width characters and emoji mess up delimiter alignment when viewing\n * the markdown source;\n * to fix this, you can pass this function,\n * which receives the cell content and returns its “visible” size;\n * note that what is and isn’t visible depends on where the text is displayed.\n *\n * Without such a function, the following:\n *\n * ```js\n * markdownTable([\n * ['Alpha', 'Bravo'],\n * ['中文', 'Charlie'],\n * ['👩❤️👩', 'Delta']\n * ])\n * ```\n *\n * Yields:\n *\n * ```markdown\n * | Alpha | Bravo |\n * | - | - |\n * | 中文 | Charlie |\n * | 👩❤️👩 | Delta |\n * ```\n *\n * With [`string-width`](https://github.com/sindresorhus/string-width):\n *\n * ```js\n * import stringWidth from 'string-width'\n *\n * markdownTable(\n * [\n * ['Alpha', 'Bravo'],\n * ['中文', 'Charlie'],\n * ['👩❤️👩', 'Delta']\n * ],\n * {stringLength: stringWidth}\n * )\n * ```\n *\n * Yields:\n *\n * ```markdown\n * | Alpha | Bravo |\n * | ----- | ------- |\n * | 中文 | Charlie |\n * | 👩❤️👩 | Delta |\n * ```\n */\n\n/**\n * @param {string} value\n * Cell value.\n * @returns {number}\n * Cell size.\n */\nfunction defaultStringLength(value) {\n return value.length\n}\n\n/**\n * Generate a markdown\n * ([GFM](https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables))\n * table.\n *\n * @param {ReadonlyArray<ReadonlyArray<string | null | undefined>>} table\n * Table data (matrix of strings).\n * @param {Readonly<Options> | null | undefined} [options]\n * Configuration (optional).\n * @returns {string}\n * Result.\n */\nexport function markdownTable(table, options) {\n const settings = options || {}\n // To do: next major: change to spread.\n const align = (settings.align || []).concat()\n const stringLength = settings.stringLength || defaultStringLength\n /** @type {Array<number>} Character codes as symbols for alignment per column. */\n const alignments = []\n /** @type {Array<Array<string>>} Cells per row. */\n const cellMatrix = []\n /** @type {Array<Array<number>>} Sizes of each cell per row. */\n const sizeMatrix = []\n /** @type {Array<number>} */\n const longestCellByColumn = []\n let mostCellsPerRow = 0\n let rowIndex = -1\n\n // This is a superfluous loop if we don’t align delimiters, but otherwise we’d\n // do superfluous work when aligning, so optimize for aligning.\n while (++rowIndex < table.length) {\n /** @type {Array<string>} */\n const row = []\n /** @type {Array<number>} */\n const sizes = []\n let columnIndex = -1\n\n if (table[rowIndex].length > mostCellsPerRow) {\n mostCellsPerRow = table[rowIndex].length\n }\n\n while (++columnIndex < table[rowIndex].length) {\n const cell = serialize(table[rowIndex][columnIndex])\n\n if (settings.alignDelimiters !== false) {\n const size = stringLength(cell)\n sizes[columnIndex] = size\n\n if (\n longestCellByColumn[columnIndex] === undefined ||\n size > longestCellByColumn[columnIndex]\n ) {\n longestCellByColumn[columnIndex] = size\n }\n }\n\n row.push(cell)\n }\n\n cellMatrix[rowIndex] = row\n sizeMatrix[rowIndex] = sizes\n }\n\n // Figure out which alignments to use.\n let columnIndex = -1\n\n if (typeof align === 'object' && 'length' in align) {\n while (++columnIndex < mostCellsPerRow) {\n alignments[columnIndex] = toAlignment(align[columnIndex])\n }\n } else {\n const code = toAlignment(align)\n\n while (++columnIndex < mostCellsPerRow) {\n alignments[columnIndex] = code\n }\n }\n\n // Inject the alignment row.\n columnIndex = -1\n /** @type {Array<string>} */\n const row = []\n /** @type {Array<number>} */\n const sizes = []\n\n while (++columnIndex < mostCellsPerRow) {\n const code = alignments[columnIndex]\n let before = ''\n let after = ''\n\n if (code === 99 /* `c` */) {\n before = ':'\n after = ':'\n } else if (code === 108 /* `l` */) {\n before = ':'\n } else if (code === 114 /* `r` */) {\n after = ':'\n }\n\n // There *must* be at least one hyphen-minus in each alignment cell.\n let size =\n settings.alignDelimiters === false\n ? 1\n : Math.max(\n 1,\n longestCellByColumn[columnIndex] - before.length - after.length\n )\n\n const cell = before + '-'.repeat(size) + after\n\n if (settings.alignDelimiters !== false) {\n size = before.length + size + after.length\n\n if (size > longestCellByColumn[columnIndex]) {\n longestCellByColumn[columnIndex] = size\n }\n\n sizes[columnIndex] = size\n }\n\n row[columnIndex] = cell\n }\n\n // Inject the alignment row.\n cellMatrix.splice(1, 0, row)\n sizeMatrix.splice(1, 0, sizes)\n\n rowIndex = -1\n /** @type {Array<string>} */\n const lines = []\n\n while (++rowIndex < cellMatrix.length) {\n const row = cellMatrix[rowIndex]\n const sizes = sizeMatrix[rowIndex]\n columnIndex = -1\n /** @type {Array<string>} */\n const line = []\n\n while (++columnIndex < mostCellsPerRow) {\n const cell = row[columnIndex] || ''\n let before = ''\n let after = ''\n\n if (settings.alignDelimiters !== false) {\n const size =\n longestCellByColumn[columnIndex] - (sizes[columnIndex] || 0)\n const code = alignments[columnIndex]\n\n if (code === 114 /* `r` */) {\n before = ' '.repeat(size)\n } else if (code === 99 /* `c` */) {\n if (size % 2) {\n before = ' '.repeat(size / 2 + 0.5)\n after = ' '.repeat(size / 2 - 0.5)\n } else {\n before = ' '.repeat(size / 2)\n after = before\n }\n } else {\n after = ' '.repeat(size)\n }\n }\n\n if (settings.delimiterStart !== false && !columnIndex) {\n line.push('|')\n }\n\n if (\n settings.padding !== false &&\n // Don’t add the opening space if we’re not aligning and the cell is\n // empty: there will be a closing space.\n !(settings.alignDelimiters === false && cell === '') &&\n (settings.delimiterStart !== false || columnIndex)\n ) {\n line.push(' ')\n }\n\n if (settings.alignDelimiters !== false) {\n line.push(before)\n }\n\n line.push(cell)\n\n if (settings.alignDelimiters !== false) {\n line.push(after)\n }\n\n if (settings.padding !== false) {\n line.push(' ')\n }\n\n if (\n settings.delimiterEnd !== false ||\n columnIndex !== mostCellsPerRow - 1\n ) {\n line.push('|')\n }\n }\n\n lines.push(\n settings.delimiterEnd === false\n ? line.join('').replace(/ +$/, '')\n : line.join('')\n )\n }\n\n return lines.join('\\n')\n}\n\n/**\n * @param {string | null | undefined} [value]\n * Value to serialize.\n * @returns {string}\n * Result.\n */\nfunction serialize(value) {\n return value === null || value === undefined ? '' : String(value)\n}\n\n/**\n * @param {string | null | undefined} value\n * Value.\n * @returns {number}\n * Alignment.\n */\nfunction toAlignment(value) {\n const code = typeof value === 'string' ? value.codePointAt(0) : 0\n\n return code === 67 /* `C` */ || code === 99 /* `c` */\n ? 99 /* `c` */\n : code === 76 /* `L` */ || code === 108 /* `l` */\n ? 108 /* `l` */\n : code === 82 /* `R` */ || code === 114 /* `r` */\n ? 114 /* `r` */\n : 0\n}\n"],"names":["defaultStringLength","value","markdownTable","table","options","settings","align","stringLength","alignments","cellMatrix","sizeMatrix","longestCellByColumn","mostCellsPerRow","rowIndex","row","sizes","columnIndex","cell","serialize","size","toAlignment","code","before","after","lines","line"],"mappings":"AAyJA,SAASA,EAAoBC,GAAO;AAClC,SAAOA,EAAM;AACf;AAcO,SAASC,EAAcC,GAAOC,GAAS;AAC5C,QAAMC,IAAWD,KAAW,CAAA,GAEtBE,KAASD,EAAS,SAAS,CAAA,GAAI,OAAM,GACrCE,IAAeF,EAAS,gBAAgBL,GAExCQ,IAAa,CAAA,GAEbC,IAAa,CAAA,GAEbC,IAAa,CAAA,GAEbC,IAAsB,CAAA;AAC5B,MAAIC,IAAkB,GAClBC,IAAW;AAIf,SAAO,EAAEA,IAAWV,EAAM,UAAQ;AAEhC,UAAMW,IAAM,CAAA,GAENC,IAAQ,CAAA;AACd,QAAIC,IAAc;AAMlB,SAJIb,EAAMU,CAAQ,EAAE,SAASD,MAC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B,EAAK,KAAKF,CAAK,GAGblB,EAAS,YAAY,MACvBoB,EAAK,KAAK,GAAG,IAIbpB,EAAS,iBAAiB,MAC1BW,MAAgBJ,IAAkB,MAElCa,EAAK,KAAK,GAAG;AAAA,IAEjB;AAEA,IAAAD,EAAM;AAAA,MACJnB,EAAS,iBAAiB,KACtBoB,EAAK,KAAK,EAAE,EAAE,QAAQ,OAAO,EAAE,IAC/BA,EAAK,KAAK,EAAE;AAAA,IACtB;AAAA,EACE;AAEA,SAAOD,EAAM,KAAK;AAAA,CAAI;AACxB;AAQA,SAASN,EAAUjB,GAAO;AACxB,SAAOA,KAAU,OAA8B,KAAK,OAAOA,CAAK;AAClE;AAQA,SAASmB,EAAYnB,GAAO;AAC1B,QAAMoB,IAAO,OAAOpB,KAAU,WAAWA,EAAM,YAAY,CAAC,IAAI;AAEhE,SAAOoB,MAAS,MAAgBA,MAAS,KACrC,KACAA,MAAS,MAAgBA,MAAS,MAChC,MACAA,MAAS,MAAgBA,MAAS,MAChC,MACA;AACV;","x_google_ignoreList":[0]}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import b from "../../escape-string-regexp/index.js";
|
|
2
|
-
import { convert as E } from "../../unist-util-is/lib/index.js";
|
|
3
|
-
import { visitParents as I } from "../../unist-util-visit-parents/lib/index.js";
|
|
4
|
-
function q(e, f, a) {
|
|
5
|
-
const p = E((a || {}).ignore || []), x = R(f);
|
|
6
|
-
let d = -1;
|
|
7
|
-
for (; ++d < x.length; )
|
|
8
|
-
I(e, "text", m);
|
|
9
|
-
function m(n, s) {
|
|
10
|
-
let c = -1, t;
|
|
11
|
-
for (; ++c < s.length; ) {
|
|
12
|
-
const u = s[c], r = t ? t.children : void 0;
|
|
13
|
-
if (p(
|
|
14
|
-
u,
|
|
15
|
-
r ? r.indexOf(u) : void 0,
|
|
16
|
-
t
|
|
17
|
-
))
|
|
18
|
-
return;
|
|
19
|
-
t = u;
|
|
20
|
-
}
|
|
21
|
-
if (t)
|
|
22
|
-
return w(n, s);
|
|
23
|
-
}
|
|
24
|
-
function w(n, s) {
|
|
25
|
-
const c = s[s.length - 1], t = x[d][0], u = x[d][1];
|
|
26
|
-
let r = 0;
|
|
27
|
-
const y = c.children.indexOf(n);
|
|
28
|
-
let v = !1, l = [];
|
|
29
|
-
t.lastIndex = 0;
|
|
30
|
-
let o = t.exec(n.value);
|
|
31
|
-
for (; o; ) {
|
|
32
|
-
const h = o.index, A = {
|
|
33
|
-
index: o.index,
|
|
34
|
-
input: o.input,
|
|
35
|
-
stack: [...s, n]
|
|
36
|
-
};
|
|
37
|
-
let i = u(...o, A);
|
|
38
|
-
if (typeof i == "string" && (i = i.length > 0 ? { type: "text", value: i } : void 0), i === !1 ? t.lastIndex = h + 1 : (r !== h && l.push({
|
|
39
|
-
type: "text",
|
|
40
|
-
value: n.value.slice(r, h)
|
|
41
|
-
}), Array.isArray(i) ? l.push(...i) : i && l.push(i), r = h + o[0].length, v = !0), !t.global)
|
|
42
|
-
break;
|
|
43
|
-
o = t.exec(n.value);
|
|
44
|
-
}
|
|
45
|
-
return v ? (r < n.value.length && l.push({ type: "text", value: n.value.slice(r) }), c.children.splice(y, 1, ...l)) : l = [n], y + l.length;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function R(e) {
|
|
49
|
-
const f = [];
|
|
50
|
-
if (!Array.isArray(e))
|
|
51
|
-
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
52
|
-
const a = !e[0] || Array.isArray(e[0]) ? e : [e];
|
|
53
|
-
let g = -1;
|
|
54
|
-
for (; ++g < a.length; ) {
|
|
55
|
-
const p = a[g];
|
|
56
|
-
f.push([k(p[0]), P(p[1])]);
|
|
57
|
-
}
|
|
58
|
-
return f;
|
|
59
|
-
}
|
|
60
|
-
function k(e) {
|
|
61
|
-
return typeof e == "string" ? new RegExp(b(e), "g") : e;
|
|
62
|
-
}
|
|
63
|
-
function P(e) {
|
|
64
|
-
return typeof e == "function" ? e : function() {
|
|
65
|
-
return e;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
export {
|
|
69
|
-
q as findAndReplace
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/mdast-util-find-and-replace/lib/index.js"],"sourcesContent":["/**\n * @import {Nodes, Parents, PhrasingContent, Root, Text} from 'mdast'\n * @import {BuildVisitor, Test, VisitorResult} from 'unist-util-visit-parents'\n */\n\n/**\n * @typedef RegExpMatchObject\n * Info on the match.\n * @property {number} index\n * The index of the search at which the result was found.\n * @property {string} input\n * A copy of the search string in the text node.\n * @property {[...Array<Parents>, Text]} stack\n * All ancestors of the text node, where the last node is the text itself.\n *\n * @typedef {RegExp | string} Find\n * Pattern to find.\n *\n * Strings are escaped and then turned into global expressions.\n *\n * @typedef {Array<FindAndReplaceTuple>} FindAndReplaceList\n * Several find and replaces, in array form.\n *\n * @typedef {[Find, Replace?]} FindAndReplaceTuple\n * Find and replace in tuple form.\n *\n * @typedef {ReplaceFunction | string | null | undefined} Replace\n * Thing to replace with.\n *\n * @callback ReplaceFunction\n * Callback called when a search matches.\n * @param {...any} parameters\n * The parameters are the result of corresponding search expression:\n *\n * * `value` (`string`) — whole match\n * * `...capture` (`Array<string>`) — matches from regex capture groups\n * * `match` (`RegExpMatchObject`) — info on the match\n * @returns {Array<PhrasingContent> | PhrasingContent | string | false | null | undefined}\n * Thing to replace with.\n *\n * * when `null`, `undefined`, `''`, remove the match\n * * …or when `false`, do not replace at all\n * * …or when `string`, replace with a text node of that value\n * * …or when `Node` or `Array<Node>`, replace with those nodes\n *\n * @typedef {[RegExp, ReplaceFunction]} Pair\n * Normalized find and replace.\n *\n * @typedef {Array<Pair>} Pairs\n * All find and replaced.\n *\n * @typedef Options\n * Configuration.\n * @property {Test | null | undefined} [ignore]\n * Test for which nodes to ignore (optional).\n */\n\nimport escape from 'escape-string-regexp'\nimport {visitParents} from 'unist-util-visit-parents'\nimport {convert} from 'unist-util-is'\n\n/**\n * Find patterns in a tree and replace them.\n *\n * The algorithm searches the tree in *preorder* for complete values in `Text`\n * nodes.\n * Partial matches are not supported.\n *\n * @param {Nodes} tree\n * Tree to change.\n * @param {FindAndReplaceList | FindAndReplaceTuple} list\n * Patterns to find.\n * @param {Options | null | undefined} [options]\n * Configuration (when `find` is not `Find`).\n * @returns {undefined}\n * Nothing.\n */\nexport function findAndReplace(tree, list, options) {\n const settings = options || {}\n const ignored = convert(settings.ignore || [])\n const pairs = toPairs(list)\n let pairIndex = -1\n\n while (++pairIndex < pairs.length) {\n visitParents(tree, 'text', visitor)\n }\n\n /** @type {BuildVisitor<Root, 'text'>} */\n function visitor(node, parents) {\n let index = -1\n /** @type {Parents | undefined} */\n let grandparent\n\n while (++index < parents.length) {\n const parent = parents[index]\n /** @type {Array<Nodes> | undefined} */\n const siblings = grandparent ? grandparent.children : undefined\n\n if (\n ignored(\n parent,\n siblings ? siblings.indexOf(parent) : undefined,\n grandparent\n )\n ) {\n return\n }\n\n grandparent = parent\n }\n\n if (grandparent) {\n return handler(node, parents)\n }\n }\n\n /**\n * Handle a text node which is not in an ignored parent.\n *\n * @param {Text} node\n * Text node.\n * @param {Array<Parents>} parents\n * Parents.\n * @returns {VisitorResult}\n * Result.\n */\n function handler(node, parents) {\n const parent = parents[parents.length - 1]\n const find = pairs[pairIndex][0]\n const replace = pairs[pairIndex][1]\n let start = 0\n /** @type {Array<Nodes>} */\n const siblings = parent.children\n const index = siblings.indexOf(node)\n let change = false\n /** @type {Array<PhrasingContent>} */\n let nodes = []\n\n find.lastIndex = 0\n\n let match = find.exec(node.value)\n\n while (match) {\n const position = match.index\n /** @type {RegExpMatchObject} */\n const matchObject = {\n index: match.index,\n input: match.input,\n stack: [...parents, node]\n }\n let value = replace(...match, matchObject)\n\n if (typeof value === 'string') {\n value = value.length > 0 ? {type: 'text', value} : undefined\n }\n\n // It wasn’t a match after all.\n if (value === false) {\n // False acts as if there was no match.\n // So we need to reset `lastIndex`, which currently being at the end of\n // the current match, to the beginning.\n find.lastIndex = position + 1\n } else {\n if (start !== position) {\n nodes.push({\n type: 'text',\n value: node.value.slice(start, position)\n })\n }\n\n if (Array.isArray(value)) {\n nodes.push(...value)\n } else if (value) {\n nodes.push(value)\n }\n\n start = position + match[0].length\n change = true\n }\n\n if (!find.global) {\n break\n }\n\n match = find.exec(node.value)\n }\n\n if (change) {\n if (start < node.value.length) {\n nodes.push({type: 'text', value: node.value.slice(start)})\n }\n\n parent.children.splice(index, 1, ...nodes)\n } else {\n nodes = [node]\n }\n\n return index + nodes.length\n }\n}\n\n/**\n * Turn a tuple or a list of tuples into pairs.\n *\n * @param {FindAndReplaceList | FindAndReplaceTuple} tupleOrList\n * Schema.\n * @returns {Pairs}\n * Clean pairs.\n */\nfunction toPairs(tupleOrList) {\n /** @type {Pairs} */\n const result = []\n\n if (!Array.isArray(tupleOrList)) {\n throw new TypeError('Expected find and replace tuple or list of tuples')\n }\n\n /** @type {FindAndReplaceList} */\n // @ts-expect-error: correct.\n const list =\n !tupleOrList[0] || Array.isArray(tupleOrList[0])\n ? tupleOrList\n : [tupleOrList]\n\n let index = -1\n\n while (++index < list.length) {\n const tuple = list[index]\n result.push([toExpression(tuple[0]), toFunction(tuple[1])])\n }\n\n return result\n}\n\n/**\n * Turn a find into an expression.\n *\n * @param {Find} find\n * Find.\n * @returns {RegExp}\n * Expression.\n */\nfunction toExpression(find) {\n return typeof find === 'string' ? new RegExp(escape(find), 'g') : find\n}\n\n/**\n * Turn a replace into a function.\n *\n * @param {Replace} replace\n * Replace.\n * @returns {ReplaceFunction}\n * Function.\n */\nfunction toFunction(replace) {\n return typeof replace === 'function'\n ? replace\n : function () {\n return replace\n }\n}\n"],"names":["findAndReplace","tree","list","options","ignored","convert","pairs","toPairs","pairIndex","visitParents","visitor","node","parents","index","grandparent","parent","siblings","handler","find","replace","start","change","nodes","match","position","matchObject","value","tupleOrList","result","tuple","toExpression","toFunction","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,GAAS;AAC3B,SAAO,OAAOA,KAAY,aACtBA,IACA,WAAY;AACV,WAAOA;AAAA,EACT;AACN;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/mdast-util-gfm/lib/index.js"],"sourcesContent":["/**\n * @import {Extension as FromMarkdownExtension} from 'mdast-util-from-markdown'\n * @import {Options} from 'mdast-util-gfm'\n * @import {Options as ToMarkdownExtension} from 'mdast-util-to-markdown'\n */\n\nimport {\n gfmAutolinkLiteralFromMarkdown,\n gfmAutolinkLiteralToMarkdown\n} from 'mdast-util-gfm-autolink-literal'\nimport {\n gfmFootnoteFromMarkdown,\n gfmFootnoteToMarkdown\n} from 'mdast-util-gfm-footnote'\nimport {\n gfmStrikethroughFromMarkdown,\n gfmStrikethroughToMarkdown\n} from 'mdast-util-gfm-strikethrough'\nimport {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'\nimport {\n gfmTaskListItemFromMarkdown,\n gfmTaskListItemToMarkdown\n} from 'mdast-util-gfm-task-list-item'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM (autolink\n * literals, footnotes, strikethrough, tables, tasklists).\n *\n * @returns {Array<FromMarkdownExtension>}\n * Extension for `mdast-util-from-markdown` to enable GFM (autolink literals,\n * footnotes, strikethrough, tables, tasklists).\n */\nexport function gfmFromMarkdown() {\n return [\n gfmAutolinkLiteralFromMarkdown(),\n gfmFootnoteFromMarkdown(),\n gfmStrikethroughFromMarkdown(),\n gfmTableFromMarkdown(),\n gfmTaskListItemFromMarkdown()\n ]\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM (autolink\n * literals, footnotes, strikethrough, tables, tasklists).\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM (autolink literals,\n * footnotes, strikethrough, tables, tasklists).\n */\nexport function gfmToMarkdown(options) {\n return {\n extensions: [\n gfmAutolinkLiteralToMarkdown(),\n gfmFootnoteToMarkdown(options),\n gfmStrikethroughToMarkdown(),\n gfmTableToMarkdown(options),\n gfmTaskListItemToMarkdown()\n ]\n }\n}\n"],"names":["gfmFromMarkdown","gfmAutolinkLiteralFromMarkdown","gfmFootnoteFromMarkdown","gfmStrikethroughFromMarkdown","gfmTableFromMarkdown","gfmTaskListItemFromMarkdown","gfmToMarkdown","options","gfmAutolinkLiteralToMarkdown","gfmFootnoteToMarkdown","gfmStrikethroughToMarkdown","gfmTableToMarkdown","gfmTaskListItemToMarkdown"],"mappings":";;;;;AAgCO,SAASA,IAAkB;AAChC,SAAO;AAAA,IACLC,EAA8B;AAAA,IAC9BC,EAAuB;AAAA,IACvBC,EAA4B;AAAA,IAC5BC,EAAoB;AAAA,IACpBC,EAA2B;AAAA,EAC/B;AACA;AAYO,SAASC,EAAcC,GAAS;AACrC,SAAO;AAAA,IACL,YAAY;AAAA,MACVC,EAA4B;AAAA,MAC5BC,EAAsBF,CAAO;AAAA,MAC7BG,EAA0B;AAAA,MAC1BC,EAAmBJ,CAAO;AAAA,MAC1BK,EAAyB;AAAA,IAC/B;AAAA,EACA;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/mdast-util-gfm-autolink-literal/lib/index.js"],"sourcesContent":["/**\n * @import {RegExpMatchObject, ReplaceFunction} from 'mdast-util-find-and-replace'\n * @import {CompileContext, Extension as FromMarkdownExtension, Handle as FromMarkdownHandle, Transform as FromMarkdownTransform} from 'mdast-util-from-markdown'\n * @import {ConstructName, Options as ToMarkdownExtension} from 'mdast-util-to-markdown'\n * @import {Link, PhrasingContent} from 'mdast'\n */\n\nimport {ccount} from 'ccount'\nimport {ok as assert} from 'devlop'\nimport {unicodePunctuation, unicodeWhitespace} from 'micromark-util-character'\nimport {findAndReplace} from 'mdast-util-find-and-replace'\n\n/** @type {ConstructName} */\nconst inConstruct = 'phrasing'\n/** @type {Array<ConstructName>} */\nconst notInConstruct = ['autolink', 'link', 'image', 'label']\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM autolink\n * literals in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM autolink literals.\n */\nexport function gfmAutolinkLiteralFromMarkdown() {\n return {\n transforms: [transformGfmAutolinkLiterals],\n enter: {\n literalAutolink: enterLiteralAutolink,\n literalAutolinkEmail: enterLiteralAutolinkValue,\n literalAutolinkHttp: enterLiteralAutolinkValue,\n literalAutolinkWww: enterLiteralAutolinkValue\n },\n exit: {\n literalAutolink: exitLiteralAutolink,\n literalAutolinkEmail: exitLiteralAutolinkEmail,\n literalAutolinkHttp: exitLiteralAutolinkHttp,\n literalAutolinkWww: exitLiteralAutolinkWww\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM autolink\n * literals in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM autolink literals.\n */\nexport function gfmAutolinkLiteralToMarkdown() {\n return {\n unsafe: [\n {\n character: '@',\n before: '[+\\\\-.\\\\w]',\n after: '[\\\\-.\\\\w]',\n inConstruct,\n notInConstruct\n },\n {\n character: '.',\n before: '[Ww]',\n after: '[\\\\-.\\\\w]',\n inConstruct,\n notInConstruct\n },\n {\n character: ':',\n before: '[ps]',\n after: '\\\\/',\n inConstruct,\n notInConstruct\n }\n ]\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterLiteralAutolink(token) {\n this.enter({type: 'link', title: null, url: '', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterLiteralAutolinkValue(token) {\n this.config.enter.autolinkProtocol.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkHttp(token) {\n this.config.exit.autolinkProtocol.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkWww(token) {\n this.config.exit.data.call(this, token)\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'link')\n node.url = 'http://' + this.sliceSerialize(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkEmail(token) {\n this.config.exit.autolinkEmail.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolink(token) {\n this.exit(token)\n}\n\n/** @type {FromMarkdownTransform} */\nfunction transformGfmAutolinkLiterals(tree) {\n findAndReplace(\n tree,\n [\n [/(https?:\\/\\/|www(?=\\.))([-.\\w]+)([^ \\t\\r\\n]*)/gi, findUrl],\n [/(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)/gu, findEmail]\n ],\n {ignore: ['link', 'linkReference']}\n )\n}\n\n/**\n * @type {ReplaceFunction}\n * @param {string} _\n * @param {string} protocol\n * @param {string} domain\n * @param {string} path\n * @param {RegExpMatchObject} match\n * @returns {Array<PhrasingContent> | Link | false}\n */\n// eslint-disable-next-line max-params\nfunction findUrl(_, protocol, domain, path, match) {\n let prefix = ''\n\n // Not an expected previous character.\n if (!previous(match)) {\n return false\n }\n\n // Treat `www` as part of the domain.\n if (/^w/i.test(protocol)) {\n domain = protocol + domain\n protocol = ''\n prefix = 'http://'\n }\n\n if (!isCorrectDomain(domain)) {\n return false\n }\n\n const parts = splitUrl(domain + path)\n\n if (!parts[0]) return false\n\n /** @type {Link} */\n const result = {\n type: 'link',\n title: null,\n url: prefix + protocol + parts[0],\n children: [{type: 'text', value: protocol + parts[0]}]\n }\n\n if (parts[1]) {\n return [result, {type: 'text', value: parts[1]}]\n }\n\n return result\n}\n\n/**\n * @type {ReplaceFunction}\n * @param {string} _\n * @param {string} atext\n * @param {string} label\n * @param {RegExpMatchObject} match\n * @returns {Link | false}\n */\nfunction findEmail(_, atext, label, match) {\n if (\n // Not an expected previous character.\n !previous(match, true) ||\n // Label ends in not allowed character.\n /[-\\d_]$/.test(label)\n ) {\n return false\n }\n\n return {\n type: 'link',\n title: null,\n url: 'mailto:' + atext + '@' + label,\n children: [{type: 'text', value: atext + '@' + label}]\n }\n}\n\n/**\n * @param {string} domain\n * @returns {boolean}\n */\nfunction isCorrectDomain(domain) {\n const parts = domain.split('.')\n\n if (\n parts.length < 2 ||\n (parts[parts.length - 1] &&\n (/_/.test(parts[parts.length - 1]) ||\n !/[a-zA-Z\\d]/.test(parts[parts.length - 1]))) ||\n (parts[parts.length - 2] &&\n (/_/.test(parts[parts.length - 2]) ||\n !/[a-zA-Z\\d]/.test(parts[parts.length - 2])))\n ) {\n return false\n }\n\n return true\n}\n\n/**\n * @param {string} url\n * @returns {[string, string | undefined]}\n */\nfunction splitUrl(url) {\n const trailExec = /[!\"&'),.:;<>?\\]}]+$/.exec(url)\n\n if (!trailExec) {\n return [url, undefined]\n }\n\n url = url.slice(0, trailExec.index)\n\n let trail = trailExec[0]\n let closingParenIndex = trail.indexOf(')')\n const openingParens = ccount(url, '(')\n let closingParens = ccount(url, ')')\n\n while (closingParenIndex !== -1 && openingParens > closingParens) {\n url += trail.slice(0, closingParenIndex + 1)\n trail = trail.slice(closingParenIndex + 1)\n closingParenIndex = trail.indexOf(')')\n closingParens++\n }\n\n return [url, trail]\n}\n\n/**\n * @param {RegExpMatchObject} match\n * @param {boolean | null | undefined} [email=false]\n * @returns {boolean}\n */\nfunction previous(match, email) {\n const code = match.input.charCodeAt(match.index - 1)\n\n return (\n (match.index === 0 ||\n unicodeWhitespace(code) ||\n unicodePunctuation(code)) &&\n // If it’s an email, the previous character should not be a slash.\n (!email || code !== 47)\n )\n}\n"],"names":["inConstruct","notInConstruct","gfmAutolinkLiteralFromMarkdown","transformGfmAutolinkLiterals","enterLiteralAutolink","enterLiteralAutolinkValue","exitLiteralAutolink","exitLiteralAutolinkEmail","exitLiteralAutolinkHttp","exitLiteralAutolinkWww","gfmAutolinkLiteralToMarkdown","token","node","assert","tree","findAndReplace","findUrl","findEmail","_","protocol","domain","path","match","prefix","previous","isCorrectDomain","parts","splitUrl","result","atext","label","url","trailExec","trail","closingParenIndex","openingParens","ccount","closingParens","email","code","unicodeWhitespace","unicodePunctuation"],"mappings":";;;;AAaA,MAAMA,IAAc,YAEdC,IAAiB,CAAC,YAAY,QAAQ,SAAS,OAAO;AASrD,SAASC,IAAiC;AAC/C,SAAO;AAAA,IACL,YAAY,CAACC,CAA4B;AAAA,IACzC,OAAO;AAAA,MACL,iBAAiBC;AAAA,MACjB,sBAAsBC;AAAA,MACtB,qBAAqBA;AAAA,MACrB,oBAAoBA;AAAA,IAC1B;AAAA,IACI,MAAM;AAAA,MACJ,iBAAiBC;AAAA,MACjB,sBAAsBC;AAAA,MACtB,qBAAqBC;AAAA,MACrB,oBAAoBC;AAAA,IAC1B;AAAA,EACA;AACA;AASO,SAASC,IAA+B;AAC7C,SAAO;AAAA,IACL,QAAQ;AAAA,MACN;AAAA,QACE,WAAW;AAAA,QACX,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,aAAAV;AAAA,QACA,gBAAAC;AAAA,MACR;AAAA,MACM;AAAA,QACE,WAAW;AAAA,QACX,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,aAAAD;AAAA,QACA,gBAAAC;AAAA,MACR;AAAA,MACM;AAAA,QACE,WAAW;AAAA,QACX,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,aAAAD;AAAA,QACA,gBAAAC;AAAA,MACR;AAAA,IACA;AAAA,EACA;AACA;AAMA,SAASG,EAAqBO,GAAO;AACnC,OAAK,MAAM,EAAC,MAAM,QAAQ,OAAO,MAAM,KAAK,IAAI,UAAU,CAAA,EAAE,GAAGA,CAAK;AACtE;AAMA,SAASN,EAA0BM,GAAO;AACxC,OAAK,OAAO,MAAM,iBAAiB,KAAK,MAAMA,CAAK;A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AAGF,SAAO,CAACN,GAAKE,CAAK;AACpB;AAOA,SAAST,EAASF,GAAOgB,GAAO;AAC9B,QAAMC,IAAOjB,EAAM,MAAM,WAAWA,EAAM,QAAQ,CAAC;AAEnD,UACGA,EAAM,UAAU,KACfkB,EAAkBD,CAAI,KACtBE,EAAmBF,CAAI;AAAA,GAExB,CAACD,KAASC,MAAS;AAExB;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/mdast-util-gfm-footnote/lib/index.js"],"sourcesContent":["/**\n * @import {\n * CompileContext,\n * Extension as FromMarkdownExtension,\n * Handle as FromMarkdownHandle\n * } from 'mdast-util-from-markdown'\n * @import {ToMarkdownOptions} from 'mdast-util-gfm-footnote'\n * @import {\n * Handle as ToMarkdownHandle,\n * Map,\n * Options as ToMarkdownExtension\n * } from 'mdast-util-to-markdown'\n * @import {FootnoteDefinition, FootnoteReference} from 'mdast'\n */\n\nimport {ok as assert} from 'devlop'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\n\nfootnoteReference.peek = footnoteReferencePeek\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteCallString() {\n this.buffer()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteCall(token) {\n this.enter({type: 'footnoteReference', identifier: '', label: ''}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteDefinitionLabelString() {\n this.buffer()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteDefinition(token) {\n this.enter(\n {type: 'footnoteDefinition', identifier: '', label: '', children: []},\n token\n )\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteCallString(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'footnoteReference')\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n node.label = label\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteCall(token) {\n this.exit(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteDefinitionLabelString(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'footnoteDefinition')\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n node.label = label\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteDefinition(token) {\n this.exit(token)\n}\n\n/** @type {ToMarkdownHandle} */\nfunction footnoteReferencePeek() {\n return '['\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {FootnoteReference} node\n */\nfunction footnoteReference(node, _, state, info) {\n const tracker = state.createTracker(info)\n let value = tracker.move('[^')\n const exit = state.enter('footnoteReference')\n const subexit = state.enter('reference')\n value += tracker.move(\n state.safe(state.associationId(node), {after: ']', before: value})\n )\n subexit()\n exit()\n value += tracker.move(']')\n return value\n}\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM footnotes\n * in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown`.\n */\nexport function gfmFootnoteFromMarkdown() {\n return {\n enter: {\n gfmFootnoteCallString: enterFootnoteCallString,\n gfmFootnoteCall: enterFootnoteCall,\n gfmFootnoteDefinitionLabelString: enterFootnoteDefinitionLabelString,\n gfmFootnoteDefinition: enterFootnoteDefinition\n },\n exit: {\n gfmFootnoteCallString: exitFootnoteCallString,\n gfmFootnoteCall: exitFootnoteCall,\n gfmFootnoteDefinitionLabelString: exitFootnoteDefinitionLabelString,\n gfmFootnoteDefinition: exitFootnoteDefinition\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM footnotes\n * in markdown.\n *\n * @param {ToMarkdownOptions | null | undefined} [options]\n * Configuration (optional).\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown`.\n */\nexport function gfmFootnoteToMarkdown(options) {\n // To do: next major: change default.\n let firstLineBlank = false\n\n if (options && options.firstLineBlank) {\n firstLineBlank = true\n }\n\n return {\n handlers: {footnoteDefinition, footnoteReference},\n // This is on by default already.\n unsafe: [{character: '[', inConstruct: ['label', 'phrasing', 'reference']}]\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {FootnoteDefinition} node\n */\n function footnoteDefinition(node, _, state, info) {\n const tracker = state.createTracker(info)\n let value = tracker.move('[^')\n const exit = state.enter('footnoteDefinition')\n const subexit = state.enter('label')\n value += tracker.move(\n state.safe(state.associationId(node), {before: value, after: ']'})\n )\n subexit()\n\n value += tracker.move(']:')\n\n if (node.children && node.children.length > 0) {\n tracker.shift(4)\n\n value += tracker.move(\n (firstLineBlank ? '\\n' : ' ') +\n state.indentLines(\n state.containerFlow(node, tracker.current()),\n firstLineBlank ? mapAll : mapExceptFirst\n )\n )\n }\n\n exit()\n\n return value\n }\n}\n\n/** @type {Map} */\nfunction mapExceptFirst(line, index, blank) {\n return index === 0 ? line : mapAll(line, index, blank)\n}\n\n/** @type {Map} */\nfunction mapAll(line, index, blank) {\n return (blank ? '' : ' ') + line\n}\n"],"names":["footnoteReference","footnoteReferencePeek","enterFootnoteCallString","enterFootnoteCall","token","enterFootnoteDefinitionLabelString","enterFootnoteDefinition","exitFootnoteCallString","label","node","assert","normalizeIdentifier","exitFootnoteCall","exitFootnoteDefinitionLabelString","exitFootnoteDefinition","_","state","info","tracker","value","exit","subexit","gfmFootnoteFromMarkdown","gfmFootnoteToMarkdown","options","firstLineBlank","footnoteDefinition","mapAll","mapExceptFirst","line","index","blank"],"mappings":";;AAkBAA,EAAkB,OAAOC;AAMzB,SAASC,IAA0B;AACjC,OAAK,OAAM;AACb;AAMA,SAASC,EAAkBC,GAAO;AAChC,OAAK,MAAM,EAAC,MAAM,qBAAqB,YAAY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A,SAASS,EAAeC,GAAMC,GAAOC,GAAO;AAC1C,SAAOD,MAAU,IAAID,IAAOF,EAAOE,GAAMC,GAAOC,CAAK;AACvD;AAGA,SAASJ,EAAOE,GAAMC,GAAOC,GAAO;AAClC,UAAQA,IAAQ,KAAK,UAAUF;AACjC;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/mdast-util-gfm-strikethrough/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Delete} Delete\n *\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n *\n * @typedef {import('mdast-util-to-markdown').ConstructName} ConstructName\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n */\n\n/**\n * List of constructs that occur in phrasing (paragraphs, headings), but cannot\n * contain strikethrough.\n * So they sort of cancel each other out.\n * Note: could use a better name.\n *\n * Note: keep in sync with: <https://github.com/syntax-tree/mdast-util-to-markdown/blob/8ce8dbf/lib/unsafe.js#L14>\n *\n * @type {Array<ConstructName>}\n */\nconst constructsWithoutStrikethrough = [\n 'autolink',\n 'destinationLiteral',\n 'destinationRaw',\n 'reference',\n 'titleQuote',\n 'titleApostrophe'\n]\n\nhandleDelete.peek = peekDelete\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM\n * strikethrough in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM strikethrough.\n */\nexport function gfmStrikethroughFromMarkdown() {\n return {\n canContainEols: ['delete'],\n enter: {strikethrough: enterStrikethrough},\n exit: {strikethrough: exitStrikethrough}\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM\n * strikethrough in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM strikethrough.\n */\nexport function gfmStrikethroughToMarkdown() {\n return {\n unsafe: [\n {\n character: '~',\n inConstruct: 'phrasing',\n notInConstruct: constructsWithoutStrikethrough\n }\n ],\n handlers: {delete: handleDelete}\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterStrikethrough(token) {\n this.enter({type: 'delete', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitStrikethrough(token) {\n this.exit(token)\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {Delete} node\n */\nfunction handleDelete(node, _, state, info) {\n const tracker = state.createTracker(info)\n const exit = state.enter('strikethrough')\n let value = tracker.move('~~')\n value += state.containerPhrasing(node, {\n ...tracker.current(),\n before: value,\n after: '~'\n })\n value += tracker.move('~~')\n exit()\n return value\n}\n\n/** @type {ToMarkdownHandle} */\nfunction peekDelete() {\n return '~'\n}\n"],"names":["constructsWithoutStrikethrough","handleDelete","peekDelete","gfmStrikethroughFromMarkdown","enterStrikethrough","exitStrikethrough","gfmStrikethroughToMarkdown","token","node","_","state","info","tracker","exit","value"],"mappings":"AAsBA,MAAMA,IAAiC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEAC,EAAa,OAAOC;AASb,SAASC,IAA+B;AAC7C,SAAO;AAAA,IACL,gBAAgB,CAAC,QAAQ;AAAA,IACzB,OAAO,EAAC,eAAeC,EAAkB;AAAA,IACzC,MAAM,EAAC,eAAeC,EAAiB;AAAA,EAC3C;AACA;AASO,SAASC,IAA6B;AAC3C,SAAO;AAAA,IACL,QAAQ;AAAA,MACN;AAAA,QACE,WAAW;AAAA,QACX,aAAa;AAAA,QACb,gBAAgBN;AAAA,MACxB;AAAA,IACA;AAAA,IACI,UAAU,EAAC,QAAQC,EAAY;AAAA,EACnC;AACA;AAMA,SAASG,EAAmBG,GAAO;AACjC,OAAK,MAAM,EAAC,MAAM,UAAU,UAAU,CAAA,EAAE,GAAGA,CAAK;AAClD;AAMA,SAASF,EAAkBE,GAAO;AAChC,OAAK,KAAKA,CAAK;AACjB;AAMA,SAASN,EAAaO,GAAMC,GAAGC,GAAOC,GAAM;AAC1C,QAAMC,IAAUF,EAAM,cAAcC,CAAI,GAClCE,IAAOH,EAAM,MAAM,eAAe;AACxC,MAAII,IAAQF,EAAQ,KAAK,IAAI;AAC7B,SAAAE,KAASJ,EAAM,kBAAkBF,GAAM;AAAA,IACrC,GAAGI,EAAQ,QAAO;AAAA,IAClB,QAAQE;AAAA,IACR,OAAO;AAAA,EACX,CAAG,GACDA,KAASF,EAAQ,KAAK,IAAI,GAC1BC,EAAI,GACGC;AACT;AAGA,SAASZ,IAAa;AACpB,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/mdast-util-gfm-table/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('mdast').Table} Table\n * @typedef {import('mdast').TableCell} TableCell\n * @typedef {import('mdast').TableRow} TableRow\n *\n * @typedef {import('markdown-table').Options} MarkdownTableOptions\n *\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n *\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').State} State\n * @typedef {import('mdast-util-to-markdown').Info} Info\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [tableCellPadding=true]\n * Whether to add a space of padding between delimiters and cells (default:\n * `true`).\n * @property {boolean | null | undefined} [tablePipeAlign=true]\n * Whether to align the delimiters (default: `true`).\n * @property {MarkdownTableOptions['stringLength'] | null | undefined} [stringLength]\n * Function to detect the length of table cell content, used when aligning\n * the delimiters between cells (optional).\n */\n\nimport {ok as assert} from 'devlop'\nimport {markdownTable} from 'markdown-table'\nimport {defaultHandlers} from 'mdast-util-to-markdown'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM tables in\n * markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM tables.\n */\nexport function gfmTableFromMarkdown() {\n return {\n enter: {\n table: enterTable,\n tableData: enterCell,\n tableHeader: enterCell,\n tableRow: enterRow\n },\n exit: {\n codeText: exitCodeText,\n table: exitTable,\n tableData: exit,\n tableHeader: exit,\n tableRow: exit\n }\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterTable(token) {\n const align = token._align\n assert(align, 'expected `_align` on table')\n this.enter(\n {\n type: 'table',\n align: align.map(function (d) {\n return d === 'none' ? null : d\n }),\n children: []\n },\n token\n )\n this.data.inTable = true\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitTable(token) {\n this.exit(token)\n this.data.inTable = undefined\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterRow(token) {\n this.enter({type: 'tableRow', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exit(token) {\n this.exit(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterCell(token) {\n this.enter({type: 'tableCell', children: []}, token)\n}\n\n// Overwrite the default code text data handler to unescape escaped pipes when\n// they are in tables.\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitCodeText(token) {\n let value = this.resume()\n\n if (this.data.inTable) {\n value = value.replace(/\\\\([\\\\|])/g, replace)\n }\n\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'inlineCode')\n node.value = value\n this.exit(token)\n}\n\n/**\n * @param {string} $0\n * @param {string} $1\n * @returns {string}\n */\nfunction replace($0, $1) {\n // Pipes work, backslashes don’t (but can’t escape pipes).\n return $1 === '|' ? $1 : $0\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM tables in\n * markdown.\n *\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM tables.\n */\nexport function gfmTableToMarkdown(options) {\n const settings = options || {}\n const padding = settings.tableCellPadding\n const alignDelimiters = settings.tablePipeAlign\n const stringLength = settings.stringLength\n const around = padding ? ' ' : '|'\n\n return {\n unsafe: [\n {character: '\\r', inConstruct: 'tableCell'},\n {character: '\\n', inConstruct: 'tableCell'},\n // A pipe, when followed by a tab or space (padding), or a dash or colon\n // (unpadded delimiter row), could result in a table.\n {atBreak: true, character: '|', after: '[\\t :-]'},\n // A pipe in a cell must be encoded.\n {character: '|', inConstruct: 'tableCell'},\n // A colon must be followed by a dash, in which case it could start a\n // delimiter row.\n {atBreak: true, character: ':', after: '-'},\n // A delimiter row can also start with a dash, when followed by more\n // dashes, a colon, or a pipe.\n // This is a stricter version than the built in check for lists, thematic\n // breaks, and setex heading underlines though:\n // <https://github.com/syntax-tree/mdast-util-to-markdown/blob/51a2038/lib/unsafe.js#L57>\n {atBreak: true, character: '-', after: '[:|-]'}\n ],\n handlers: {\n inlineCode: inlineCodeWithTable,\n table: handleTable,\n tableCell: handleTableCell,\n tableRow: handleTableRow\n }\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {Table} node\n */\n function handleTable(node, _, state, info) {\n return serializeData(handleTableAsData(node, state, info), node.align)\n }\n\n /**\n * This function isn’t really used normally, because we handle rows at the\n * table level.\n * But, if someone passes in a table row, this ensures we make somewhat sense.\n *\n * @type {ToMarkdownHandle}\n * @param {TableRow} node\n */\n function handleTableRow(node, _, state, info) {\n const row = handleTableRowAsData(node, state, info)\n const value = serializeData([row])\n // `markdown-table` will always add an align row\n return value.slice(0, value.indexOf('\\n'))\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {TableCell} node\n */\n function handleTableCell(node, _, state, info) {\n const exit = state.enter('tableCell')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, {\n ...info,\n before: around,\n after: around\n })\n subexit()\n exit()\n return value\n }\n\n /**\n * @param {Array<Array<string>>} matrix\n * @param {Array<string | null | undefined> | null | undefined} [align]\n */\n function serializeData(matrix, align) {\n return markdownTable(matrix, {\n align,\n // @ts-expect-error: `markdown-table` types should support `null`.\n alignDelimiters,\n // @ts-expect-error: `markdown-table` types should support `null`.\n padding,\n // @ts-expect-error: `markdown-table` types should support `null`.\n stringLength\n })\n }\n\n /**\n * @param {Table} node\n * @param {State} state\n * @param {Info} info\n */\n function handleTableAsData(node, state, info) {\n const children = node.children\n let index = -1\n /** @type {Array<Array<string>>} */\n const result = []\n const subexit = state.enter('table')\n\n while (++index < children.length) {\n result[index] = handleTableRowAsData(children[index], state, info)\n }\n\n subexit()\n\n return result\n }\n\n /**\n * @param {TableRow} node\n * @param {State} state\n * @param {Info} info\n */\n function handleTableRowAsData(node, state, info) {\n const children = node.children\n let index = -1\n /** @type {Array<string>} */\n const result = []\n const subexit = state.enter('tableRow')\n\n while (++index < children.length) {\n // Note: the positional info as used here is incorrect.\n // Making it correct would be impossible due to aligning cells?\n // And it would need copy/pasting `markdown-table` into this project.\n result[index] = handleTableCell(children[index], node, state, info)\n }\n\n subexit()\n\n return result\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {InlineCode} node\n */\n function inlineCodeWithTable(node, parent, state) {\n let value = defaultHandlers.inlineCode(node, parent, state)\n\n if (state.stack.includes('tableCell')) {\n value = value.replace(/\\|/g, '\\\\$&')\n }\n\n return value\n }\n}\n"],"names":["gfmTableFromMarkdown","enterTable","enterCell","enterRow","exitCodeText","exitTable","exit","token","align","d","value","replace","node","assert","$0","$1","gfmTableToMarkdown","options","settings","padding","alignDelimiters","stringLength","around","inlineCodeWithTable","handleTable","handleTableCell","handleTableRow","_","state","info","serializeData","handleTableAsData","row","handleTableRowAsData","subexit","matrix","markdownTable","children","index","result","parent","defaultHandlers"],"mappings":";;;AA0CO,SAASA,IAAuB;AACrC,SAAO;AAAA,IACL,OAAO;AAAA,MACL,OAAOC;AAAA,MACP,WAAWC;AAAA,MACX,aAAaA;AAAA,MACb,UAAUC;AAAA,IAChB;AAAA,IACI,MAAM;AAAA,MACJ,UAAUC;AAAA,MACV,OAAOC;AAAA,MACP,WAAWC;AAAA,MACX,aAAaA;AAAA,MACb,UAAUA;AAAA,IAChB;AAAA,EACA;AACA;AAMA,SAASL,EAAWM,GAAO;AACzB,QAAMC,IAAQD,EAAM;AAEpB,OAAK;AAAA,IACH;AAAA,MACE,MAAM;AAAA,MACN,OAAOC,EAAM,IAAI,SAAUC,GAAG;AAC5B,eAAOA,MAAM,SAAS,OAAOA;AAAA,MAC/B,CAAC;AAAA,MACD,UAAU,CAAA;AAAA,IAChB;AAAA,IACIF;AAAA,EACJ,GACE,KAAK,KAAK,UAAU;AACtB;AAMA,SAASF,EAAUE,GAAO;AACxB,OAAK,KAAKA,CAAK,GACf,KAAK,KAAK,UAAU;AACtB;AAMA,SAASJ,EAASI,GAAO;AACvB,OAAK,MAAM,EAAC,MAAM,YAAY,UAAU,CAAA,EAAE,GAAGA,CAAK;AACpD;AAMA,SAASD,EAAKC,GAAO;AACnB,OAAK,KAAKA,CAAK;AACjB;AAMA,SAASL,EAAUK,GAAO;AACxB,OAAK,MAAM,EAAC,MAAM,aAAa,UAAU,CAAA,EAAE,GAAGA,CAAK;AACrD;AAQA,SAASH,EAAaG,GAAO;AAC3B,MAAIG,IAAQ,KAAK,OAAM;AAEvB,EAAI,KAAK,KAAK,YACZA,IAAQA,EAAM,QAAQ,cAAcC,CAAO;AAG7C,QAAMC,IAAO,KAAK,MAAM,KAAK,MAAM,SAAS,CAAC;AAC7CC,EAAAA,EAAOD,EAAK,SAAS,YAAY,GACjCA,EAAK,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@@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/mdast-util-phrasing/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Html} Html\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n */\n\nimport {convert} from 'unist-util-is'\n\n/**\n * Check if the given value is *phrasing content*.\n *\n * > 👉 **Note**: Excludes `html`, which can be both phrasing or flow.\n *\n * @param node\n * Thing to check, typically `Node`.\n * @returns\n * Whether `value` is phrasing content.\n */\n\nexport const phrasing =\n /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */\n (\n convert([\n 'break',\n 'delete',\n 'emphasis',\n // To do: next major: removed since footnotes were added to GFM.\n 'footnote',\n 'footnoteReference',\n 'image',\n 'imageReference',\n 'inlineCode',\n // Enabled by `mdast-util-math`:\n 'inlineMath',\n 'link',\n 'linkReference',\n // Enabled by `mdast-util-mdx`:\n 'mdxJsxTextElement',\n // Enabled by `mdast-util-mdx`:\n 'mdxTextExpression',\n 'strong',\n 'text',\n // Enabled by `mdast-util-directive`:\n 'textDirective'\n ])\n )\n"],"names":["phrasing","convert"],"mappings":";AAkBY,MAACA;AAAA;AAAA,EAGTC,EAAQ;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA;AAAA;AAAA,IAEA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA;AAAA,EACN,CAAK;AAAA;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/blockquote.js"],"sourcesContent":["/**\n * @import {Blockquote, Parents} from 'mdast'\n * @import {Info, Map, State} from 'mdast-util-to-markdown'\n */\n\n/**\n * @param {Blockquote} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function blockquote(node, _, state, info) {\n const exit = state.enter('blockquote')\n const tracker = state.createTracker(info)\n tracker.move('> ')\n tracker.shift(2)\n const value = state.indentLines(\n state.containerFlow(node, tracker.current()),\n map\n )\n exit()\n return value\n}\n\n/** @type {Map} */\nfunction map(line, _, blank) {\n return '>' + (blank ? '' : ' ') + line\n}\n"],"names":["blockquote","node","_","state","info","exit","tracker","value","map","line","blank"],"mappings":"AAYO,SAASA,EAAWC,GAAMC,GAAGC,GAAOC,GAAM;AAC/C,QAAMC,IAAOF,EAAM,MAAM,YAAY,GAC/BG,IAAUH,EAAM,cAAcC,CAAI;AACxC,EAAAE,EAAQ,KAAK,IAAI,GACjBA,EAAQ,MAAM,CAAC;AACf,QAAMC,IAAQJ,EAAM;AAAA,IAClBA,EAAM,cAAcF,GAAMK,EAAQ,QAAO,CAAE;AAAA,IAC3CE;AAAA,EACJ;AACE,SAAAH,EAAI,GACGE;AACT;AAGA,SAASC,EAAIC,GAAMP,GAAGQ,GAAO;AAC3B,SAAO,OAAOA,IAAQ,KAAK,OAAOD;AACpC;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"break.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/break.js"],"sourcesContent":["/**\n * @import {Break, Parents} from 'mdast'\n * @import {Info, State} from 'mdast-util-to-markdown'\n */\n\nimport {patternInScope} from '../util/pattern-in-scope.js'\n\n/**\n * @param {Break} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function hardBreak(_, _1, state, info) {\n let index = -1\n\n while (++index < state.unsafe.length) {\n // If we can’t put eols in this construct (setext headings, tables), use a\n // space instead.\n if (\n state.unsafe[index].character === '\\n' &&\n patternInScope(state.stack, state.unsafe[index])\n ) {\n return /[ \\t]/.test(info.before) ? '' : ' '\n }\n }\n\n return '\\\\\\n'\n}\n"],"names":["hardBreak","_","_1","state","info","index","patternInScope"],"mappings":";AAcO,SAASA,EAAUC,GAAGC,GAAIC,GAAOC,GAAM;AAC5C,MAAIC,IAAQ;AAEZ,SAAO,EAAEA,IAAQF,EAAM,OAAO;AAG5B,QACEA,EAAM,OAAOE,CAAK,EAAE,cAAc;AAAA,KAClCC,EAAeH,EAAM,OAAOA,EAAM,OAAOE,CAAK,CAAC;AAE/C,aAAO,QAAQ,KAAKD,EAAK,MAAM,IAAI,KAAK;AAI5C,SAAO;AAAA;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/code.js"],"sourcesContent":["/**\n * @import {Info, Map, State} from 'mdast-util-to-markdown'\n * @import {Code, Parents} from 'mdast'\n */\n\nimport {longestStreak} from 'longest-streak'\nimport {formatCodeAsIndented} from '../util/format-code-as-indented.js'\nimport {checkFence} from '../util/check-fence.js'\n\n/**\n * @param {Code} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function code(node, _, state, info) {\n const marker = checkFence(state)\n const raw = node.value || ''\n const suffix = marker === '`' ? 'GraveAccent' : 'Tilde'\n\n if (formatCodeAsIndented(node, state)) {\n const exit = state.enter('codeIndented')\n const value = state.indentLines(raw, map)\n exit()\n return value\n }\n\n const tracker = state.createTracker(info)\n const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3))\n const exit = state.enter('codeFenced')\n let value = tracker.move(sequence)\n\n if (node.lang) {\n const subexit = state.enter(`codeFencedLang${suffix}`)\n value += tracker.move(\n state.safe(node.lang, {\n before: value,\n after: ' ',\n encode: ['`'],\n ...tracker.current()\n })\n )\n subexit()\n }\n\n if (node.lang && node.meta) {\n const subexit = state.enter(`codeFencedMeta${suffix}`)\n value += tracker.move(' ')\n value += tracker.move(\n state.safe(node.meta, {\n before: value,\n after: '\\n',\n encode: ['`'],\n ...tracker.current()\n })\n )\n subexit()\n }\n\n value += tracker.move('\\n')\n\n if (raw) {\n value += tracker.move(raw + '\\n')\n }\n\n value += tracker.move(sequence)\n exit()\n return value\n}\n\n/** @type {Map} */\nfunction map(line, _, blank) {\n return (blank ? '' : ' ') + line\n}\n"],"names":["code","node","_","state","info","marker","checkFence","raw","suffix","formatCodeAsIndented","exit","value","map","tracker","sequence","longestStreak","subexit","line","blank"],"mappings":";;;AAgBO,SAASA,EAAKC,GAAMC,GAAGC,GAAOC,GAAM;AACzC,QAAMC,IAASC,EAAWH,CAAK,GACzBI,IAAMN,EAAK,SAAS,IACpBO,IAASH,MAAW,MAAM,gBAAgB;AAEhD,MAAII,EAAqBR,GAAME,CAAK,GAAG;AACrC,UAAMO,IAAOP,EAAM,MAAM,cAAc,GACjCQ,IAAQR,EAAM,YAAYI,GAAKK,CAAG;AACxC,WAAAF,EAAI,GACGC;AAAA,EACT;AAEA,QAAME,IAAUV,EAAM,cAAcC,CAAI,GAClCU,IAAWT,EAAO,OAAO,KAAK,IAAIU,EAAcR,GAAKF,CAAM,IAAI,GAAG,CAAC,CAAC,GACpEK,IAAOP,EAAM,MAAM,YAAY;AACrC,MAAIQ,IAAQE,EAAQ,KAAKC,CAAQ;AAEjC,MAAIb,EAAK,MAAM;AACb,UAAMe,IAAUb,EAAM,MAAM,iBAAiBK,CAAM,EAAE;AACrD,IAAAG,KAASE,EAAQ;AAAA,MACfV,EAAM,KAAKF,EAAK,MAAM;AAAA,QACpB,QAAQU;AAAA,QACR,OAAO;AAAA,QACP,QAAQ,CAAC,GAAG;AAAA,QACZ,GAAGE,EAAQ,QAAO;AAAA,MAC1B,CAAO;AAAA,IACP,GACIG,EAAO;AAAA,EACT;AAEA,MAAIf,EAAK,QAAQA,EAAK,MAAM;AAC1B,UAAMe,IAAUb,EAAM,MAAM,iBAAiBK,CAAM,EAAE;AACrD,IAAAG,KAASE,EAAQ,KAAK,GAAG,GACzBF,KAASE,EAAQ;AAAA,MACfV,EAAM,KAAKF,EAAK,MAAM;AAAA,QACpB,QAAQU;AAAA,QACR,OAAO;AAAA;AAAA,QACP,QAAQ,CAAC,GAAG;AAAA,QACZ,GAAGE,EAAQ,QAAO;AAAA,MAC1B,CAAO;AAAA,IACP,GACIG,EAAO;AAAA,EACT;AAEA,SAAAL,KAASE,EAAQ,KAAK;AAAA,CAAI,GAEtBN,MACFI,KAASE,EAAQ,KAAKN,IAAM;AAAA,CAAI,IAGlCI,KAASE,EAAQ,KAAKC,CAAQ,GAC9BJ,EAAI,GACGC;AACT;AAGA,SAASC,EAAIK,GAAMf,GAAGgB,GAAO;AAC3B,UAAQA,IAAQ,KAAK,UAAUD;AACjC;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/definition.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Definition, Parents} from 'mdast'\n */\n\nimport {checkQuote} from '../util/check-quote.js'\n\n/**\n * @param {Definition} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function definition(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const exit = state.enter('definition')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('[')\n value += tracker.move(\n state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n )\n value += tracker.move(']: ')\n\n subexit()\n\n if (\n // If there’s no url, or…\n !node.url ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : '\\n',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n exit()\n\n return value\n}\n"],"names":["definition","node","_","state","info","quote","checkQuote","suffix","exit","subexit","tracker","value"],"mappings":";AAcO,SAASA,EAAWC,GAAMC,GAAGC,GAAOC,GAAM;AAC/C,QAAMC,IAAQC,EAAWH,CAAK,GACxBI,IAASF,MAAU,MAAM,UAAU,cACnCG,IAAOL,EAAM,MAAM,YAAY;AACrC,MAAIM,IAAUN,EAAM,MAAM,OAAO;AACjC,QAAMO,IAAUP,EAAM,cAAcC,CAAI;AACxC,MAAIO,IAAQD,EAAQ,KAAK,GAAG;AAC5B,SAAAC,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKA,EAAM,cAAcF,CAAI,GAAG;AAAA,MACpC,QAAQU;AAAA,MACR,OAAO;AAAA,MACP,GAAGD,EAAQ,QAAO;AAAA,IACxB,CAAK;AAAA,EACL,GACEC,KAASD,EAAQ,KAAK,KAAK,GAE3BD,EAAO;AAAA,EAIL,CAACR,EAAK;AAAA,EAEN,eAAe,KAAKA,EAAK,GAAG,KAE5BQ,IAAUN,EAAM,MAAM,oBAAoB,GAC1CQ,KAASD,EAAQ,KAAK,GAAG,GACzBC,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKF,EAAK,KAAK,EAAC,QAAQU,GAAO,OAAO,KAAK,GAAGD,EAAQ,QAAO,EAAE,CAAC;AAAA,EAC5E,GACIC,KAASD,EAAQ,KAAK,GAAG,MAGzBD,IAAUN,EAAM,MAAM,gBAAgB,GACtCQ,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKF,EAAK,KAAK;AAAA,MACnB,QAAQU;AAAA,MACR,OAAOV,EAAK,QAAQ,MAAM;AAAA;AAAA,MAC1B,GAAGS,EAAQ,QAAO;AAAA,IAC1B,CAAO;AAAA,EACP,IAGED,EAAO,GAEHR,EAAK,UACPQ,IAAUN,EAAM,MAAM,QAAQI,CAAM,EAAE,GACtCI,KAASD,EAAQ,KAAK,MAAML,CAAK,GACjCM,KAASD,EAAQ;AAAA,IACfP,EAAM,KAAKF,EAAK,OAAO;AAAA,MACrB,QAAQU;AAAA,MACR,OAAON;AAAA,MACP,GAAGK,EAAQ,QAAO;AAAA,IAC1B,CAAO;AAAA,EACP,GACIC,KAASD,EAAQ,KAAKL,CAAK,GAC3BI,EAAO,IAGTD,EAAI,GAEGG;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emphasis.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/emphasis.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Emphasis, Parents} from 'mdast'\n */\n\nimport {checkEmphasis} from '../util/check-emphasis.js'\nimport {encodeCharacterReference} from '../util/encode-character-reference.js'\nimport {encodeInfo} from '../util/encode-info.js'\n\nemphasis.peek = emphasisPeek\n\n/**\n * @param {Emphasis} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function emphasis(node, _, state, info) {\n const marker = checkEmphasis(state)\n const exit = state.enter('emphasis')\n const tracker = state.createTracker(info)\n const before = tracker.move(marker)\n\n let between = tracker.move(\n state.containerPhrasing(node, {\n after: marker,\n before,\n ...tracker.current()\n })\n )\n const betweenHead = between.charCodeAt(0)\n const open = encodeInfo(\n info.before.charCodeAt(info.before.length - 1),\n betweenHead,\n marker\n )\n\n if (open.inside) {\n between = encodeCharacterReference(betweenHead) + between.slice(1)\n }\n\n const betweenTail = between.charCodeAt(between.length - 1)\n const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker)\n\n if (close.inside) {\n between = between.slice(0, -1) + encodeCharacterReference(betweenTail)\n }\n\n const after = tracker.move(marker)\n\n exit()\n\n state.attentionEncodeSurroundingInfo = {\n after: close.outside,\n before: open.outside\n }\n return before + between + after\n}\n\n/**\n * @param {Emphasis} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nfunction emphasisPeek(_, _1, state) {\n return state.options.emphasis || '*'\n}\n"],"names":["emphasis","emphasisPeek","node","_","state","info","marker","checkEmphasis","exit","tracker","before","between","betweenHead","open","encodeInfo","encodeCharacterReference","betweenTail","close","after","_1"],"mappings":";;;AASAA,EAAS,OAAOC;AAST,SAASD,EAASE,GAAMC,GAAGC,GAAOC,GAAM;AAC7C,QAAMC,IAASC,EAAcH,CAAK,GAC5BI,IAAOJ,EAAM,MAAM,UAAU,GAC7BK,IAAUL,EAAM,cAAcC,CAAI,GAClCK,IAASD,EAAQ,KAAKH,CAAM;AAElC,MAAIK,IAAUF,EAAQ;AAAA,IACpBL,EAAM,kBAAkBF,GAAM;AAAA,MAC5B,OAAOI;AAAA,MACP,QAAAI;AAAA,MACA,GAAGD,EAAQ,QAAO;AAAA,IACxB,CAAK;AAAA,EACL;AACE,QAAMG,IAAcD,EAAQ,WAAW,CAAC,GAClCE,IAAOC;AAAA,IACXT,EAAK,OAAO,WAAWA,EAAK,OAAO,SAAS,CAAC;AAAA,IAC7CO;AAAA,IACAN;AAAA,EACJ;AAEE,EAAIO,EAAK,WACPF,IAAUI,EAAyBH,CAAW,IAAID,EAAQ,MAAM,CAAC;AAGnE,QAAMK,IAAcL,EAAQ,WAAWA,EAAQ,SAAS,CAAC,GACnDM,IAAQH,EAAWT,EAAK,MAAM,WAAW,CAAC,GAAGW,GAAaV,CAAM;AAEtE,EAAIW,EAAM,WACRN,IAAUA,EAAQ,MAAM,GAAG,EAAE,IAAII,EAAyBC,CAAW;AAGvE,QAAME,IAAQT,EAAQ,KAAKH,CAAM;AAEjC,SAAAE,EAAI,GAEJJ,EAAM,iCAAiC;AAAA,IACrC,OAAOa,EAAM;AAAA,IACb,QAAQJ,EAAK;AAAA,EACjB,GACSH,IAASC,IAAUO;AAC5B;AAQA,SAASjB,EAAaE,GAAGgB,GAAIf,GAAO;AAClC,SAAOA,EAAM,QAAQ,YAAY;AACnC;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heading.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/heading.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Heading, Parents} from 'mdast'\n */\n\nimport {encodeCharacterReference} from '../util/encode-character-reference.js'\nimport {formatHeadingAsSetext} from '../util/format-heading-as-setext.js'\n\n/**\n * @param {Heading} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function heading(node, _, state, info) {\n const rank = Math.max(Math.min(6, node.depth || 1), 1)\n const tracker = state.createTracker(info)\n\n if (formatHeadingAsSetext(node, state)) {\n const exit = state.enter('headingSetext')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, {\n ...tracker.current(),\n before: '\\n',\n after: '\\n'\n })\n subexit()\n exit()\n\n return (\n value +\n '\\n' +\n (rank === 1 ? '=' : '-').repeat(\n // The whole size…\n value.length -\n // Minus the position of the character after the last EOL (or\n // 0 if there is none)…\n (Math.max(value.lastIndexOf('\\r'), value.lastIndexOf('\\n')) + 1)\n )\n )\n }\n\n const sequence = '#'.repeat(rank)\n const exit = state.enter('headingAtx')\n const subexit = state.enter('phrasing')\n\n // Note: for proper tracking, we should reset the output positions when there\n // is no content returned, because then the space is not output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n tracker.move(sequence + ' ')\n\n let value = state.containerPhrasing(node, {\n before: '# ',\n after: '\\n',\n ...tracker.current()\n })\n\n if (/^[\\t ]/.test(value)) {\n // To do: what effect has the character reference on tracking?\n value = encodeCharacterReference(value.charCodeAt(0)) + value.slice(1)\n }\n\n value = value ? sequence + ' ' + value : sequence\n\n if (state.options.closeAtx) {\n value += ' ' + sequence\n }\n\n subexit()\n exit()\n\n return value\n}\n"],"names":["heading","node","_","state","info","rank","tracker","formatHeadingAsSetext","exit","subexit","value","sequence","encodeCharacterReference"],"mappings":";;AAeO,SAASA,EAAQC,GAAMC,GAAGC,GAAOC,GAAM;AAC5C,QAAMC,IAAO,KAAK,IAAI,KAAK,IAAI,GAAGJ,EAAK,SAAS,CAAC,GAAG,CAAC,GAC/CK,IAAUH,EAAM,cAAcC,CAAI;AAExC,MAAIG,EAAsBN,GAAME,CAAK,GAAG;AACtC,UAAMK,IAAOL,EAAM,MAAM,eAAe,GAClCM,IAAUN,EAAM,MAAM,UAAU,GAChCO,IAAQP,EAAM,kBAAkBF,GAAM;AAAA,MAC1C,GAAGK,EAAQ,QAAO;AAAA,MAClB,QAAQ;AAAA;AAAA,MACR,OAAO;AAAA;AAAA,IACb,CAAK;AACD,WAAAG,EAAO,GACPD,EAAI,GAGFE,IACA;AAAA,KACCL,MAAS,IAAI,MAAM,KAAK;AAAA;AAAA,MAEvBK,EAAM;AAAA;AAAA,OAGH,KAAK,IAAIA,EAAM,YAAY,IAAI,GAAGA,EAAM,YAAY;AAAA,CAAI,CAAC,IAAI;AAAA,IACxE;AAAA,EAEE;AAEA,QAAMC,IAAW,IAAI,OAAON,CAAI,GAC1BG,IAAOL,EAAM,MAAM,YAAY,GAC/BM,IAAUN,EAAM,MAAM,UAAU;AAMtC,EAAAG,EAAQ,KAAKK,IAAW,GAAG;AAE3B,MAAID,IAAQP,EAAM,kBAAkBF,GAAM;AAAA,IACxC,QAAQ;AAAA,IACR,OAAO;AAAA;AAAA,IACP,GAAGK,EAAQ,QAAO;AAAA,EACtB,CAAG;AAED,SAAI,SAAS,KAAKI,CAAK,MAErBA,IAAQE,EAAyBF,EAAM,WAAW,CAAC,CAAC,IAAIA,EAAM,MAAM,CAAC,IAGvEA,IAAQA,IAAQC,IAAW,MAAMD,IAAQC,GAErCR,EAAM,QAAQ,aAChBO,KAAS,MAAMC,IAGjBF,EAAO,GACPD,EAAI,GAEGE;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/html.js"],"sourcesContent":["/**\n * @import {Html} from 'mdast'\n */\n\nhtml.peek = htmlPeek\n\n/**\n * @param {Html} node\n * @returns {string}\n */\nexport function html(node) {\n return node.value || ''\n}\n\n/**\n * @returns {string}\n */\nfunction htmlPeek() {\n return '<'\n}\n"],"names":["html","htmlPeek","node"],"mappings":"AAIAA,EAAK,OAAOC;AAML,SAASD,EAAKE,GAAM;AACzB,SAAOA,EAAK,SAAS;AACvB;AAKA,SAASD,IAAW;AAClB,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image-reference.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/image-reference.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {ImageReference, Parents} from 'mdast'\n */\n\nimageReference.peek = imageReferencePeek\n\n/**\n * @param {ImageReference} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function imageReference(node, _, state, info) {\n const type = node.referenceType\n const exit = state.enter('imageReference')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('![')\n const alt = state.safe(node.alt, {\n before: value,\n after: ']',\n ...tracker.current()\n })\n value += tracker.move(alt + '][')\n\n subexit()\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n subexit = state.enter('reference')\n // Note: for proper tracking, we should reset the output positions when we end\n // up making a `shortcut` reference, because then there is no brace output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n const reference = state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n subexit()\n state.stack = stack\n exit()\n\n if (type === 'full' || !alt || alt !== reference) {\n value += tracker.move(reference + ']')\n } else if (type === 'shortcut') {\n // Remove the unwanted `[`.\n value = value.slice(0, -1)\n } else {\n value += tracker.move(']')\n }\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction imageReferencePeek() {\n return '!'\n}\n"],"names":["imageReference","imageReferencePeek","node","_","state","info","type","exit","subexit","tracker","value","alt","stack","reference"],"mappings":"AAKAA,EAAe,OAAOC;AASf,SAASD,EAAeE,GAAMC,GAAGC,GAAOC,GAAM;AACnD,QAAMC,IAAOJ,EAAK,eACZK,IAAOH,EAAM,MAAM,gBAAgB;AACzC,MAAII,IAAUJ,EAAM,MAAM,OAAO;AACjC,QAAMK,IAAUL,EAAM,cAAcC,CAAI;AACxC,MAAIK,IAAQD,EAAQ,KAAK,IAAI;AAC7B,QAAME,IAAMP,EAAM,KAAKF,EAAK,KAAK;AAAA,IAC/B,QAAQQ;AAAA,IACR,OAAO;AAAA,IACP,GAAGD,EAAQ,QAAO;AAAA,EACtB,CAAG;AACD,EAAAC,KAASD,EAAQ,KAAKE,IAAM,IAAI,GAEhCH,EAAO;AAEP,QAAMI,IAAQR,EAAM;AACpB,EAAAA,EAAM,QAAQ,CAAA,GACdI,IAAUJ,EAAM,MAAM,WAAW;AAKjC,QAAMS,IAAYT,EAAM,KAAKA,EAAM,cAAcF,CAAI,GAAG;AAAA,IACtD,QAAQQ;AAAA,IACR,OAAO;AAAA,IACP,GAAGD,EAAQ,QAAO;AAAA,EACtB,CAAG;AACD,SAAAD,EAAO,GACPJ,EAAM,QAAQQ,GACdL,EAAI,GAEAD,MAAS,UAAU,CAACK,KAAOA,MAAQE,IACrCH,KAASD,EAAQ,KAAKI,IAAY,GAAG,IAC5BP,MAAS,aAElBI,IAAQA,EAAM,MAAM,GAAG,EAAE,IAEzBA,KAASD,EAAQ,KAAK,GAAG,GAGpBC;AACT;AAKA,SAAST,IAAqB;AAC5B,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/image.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Image, Parents} from 'mdast'\n */\n\nimport {checkQuote} from '../util/check-quote.js'\n\nimage.peek = imagePeek\n\n/**\n * @param {Image} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function image(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const exit = state.enter('image')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('![')\n value += tracker.move(\n state.safe(node.alt, {before: value, after: ']', ...tracker.current()})\n )\n value += tracker.move('](')\n\n subexit()\n\n if (\n // If there’s no url but there is a title…\n (!node.url && node.title) ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : ')',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n value += tracker.move(')')\n exit()\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction imagePeek() {\n return '!'\n}\n"],"names":["image","imagePeek","node","_","state","info","quote","checkQuote","suffix","exit","subexit","tracker","value"],"mappings":";AAOAA,EAAM,OAAOC;AASN,SAASD,EAAME,GAAMC,GAAGC,GAAOC,GAAM;AAC1C,QAAMC,IAAQC,EAAWH,CAAK,GACxBI,IAASF,MAAU,MAAM,UAAU,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;AACT;AAKA,SAASX,IAAY;AACnB,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/index.js"],"sourcesContent":["import {blockquote} from './blockquote.js'\nimport {hardBreak} from './break.js'\nimport {code} from './code.js'\nimport {definition} from './definition.js'\nimport {emphasis} from './emphasis.js'\nimport {heading} from './heading.js'\nimport {html} from './html.js'\nimport {image} from './image.js'\nimport {imageReference} from './image-reference.js'\nimport {inlineCode} from './inline-code.js'\nimport {link} from './link.js'\nimport {linkReference} from './link-reference.js'\nimport {list} from './list.js'\nimport {listItem} from './list-item.js'\nimport {paragraph} from './paragraph.js'\nimport {root} from './root.js'\nimport {strong} from './strong.js'\nimport {text} from './text.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/**\n * Default (CommonMark) handlers.\n */\nexport const handle = {\n blockquote,\n break: hardBreak,\n code,\n definition,\n emphasis,\n hardBreak,\n heading,\n html,\n image,\n imageReference,\n inlineCode,\n link,\n linkReference,\n list,\n listItem,\n paragraph,\n root,\n strong,\n text,\n thematicBreak\n}\n"],"names":["handle","blockquote","hardBreak","code","definition","emphasis","heading","html","image","imageReference","inlineCode","link","linkReference","list","listItem","paragraph","root","strong","text","thematicBreak"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBY,MAACA,IAAS;AAAA,EACpB,YAAAC;AAAA,EACA,OAAOC;AAAA,EACP,MAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAH;AAAA,EACA,SAAAI;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,MAAAC;AAAA,EACA,eAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,eAAAC;AACF;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inline-code.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/inline-code.js"],"sourcesContent":["/**\n * @import {State} from 'mdast-util-to-markdown'\n * @import {InlineCode, Parents} from 'mdast'\n */\n\ninlineCode.peek = inlineCodePeek\n\n/**\n * @param {InlineCode} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @returns {string}\n */\nexport function inlineCode(node, _, state) {\n let value = node.value || ''\n let sequence = '`'\n let index = -1\n\n // If there is a single grave accent on its own in the code, use a fence of\n // two.\n // If there are two in a row, use one.\n while (new RegExp('(^|[^`])' + sequence + '([^`]|$)').test(value)) {\n sequence += '`'\n }\n\n // If this is not just spaces or eols (tabs don’t count), and either the\n // first or last character are a space, eol, or tick, then pad with spaces.\n if (\n /[^ \\r\\n]/.test(value) &&\n ((/^[ \\r\\n]/.test(value) && /[ \\r\\n]$/.test(value)) || /^`|`$/.test(value))\n ) {\n value = ' ' + value + ' '\n }\n\n // We have a potential problem: certain characters after eols could result in\n // blocks being seen.\n // For example, if someone injected the string `'\\n# b'`, then that would\n // result in an ATX heading.\n // We can’t escape characters in `inlineCode`, but because eols are\n // transformed to spaces when going from markdown to HTML anyway, we can swap\n // them out.\n while (++index < state.unsafe.length) {\n const pattern = state.unsafe[index]\n const expression = state.compilePattern(pattern)\n /** @type {RegExpExecArray | null} */\n let match\n\n // Only look for `atBreak`s.\n // Btw: note that `atBreak` patterns will always start the regex at LF or\n // CR.\n if (!pattern.atBreak) continue\n\n while ((match = expression.exec(value))) {\n let position = match.index\n\n // Support CRLF (patterns only look for one of the characters).\n if (\n value.charCodeAt(position) === 10 /* `\\n` */ &&\n value.charCodeAt(position - 1) === 13 /* `\\r` */\n ) {\n position--\n }\n\n value = value.slice(0, position) + ' ' + value.slice(match.index + 1)\n }\n }\n\n return sequence + value + sequence\n}\n\n/**\n * @returns {string}\n */\nfunction inlineCodePeek() {\n return '`'\n}\n"],"names":["inlineCode","inlineCodePeek","node","_","state","value","sequence","index","pattern","expression","match","position"],"mappings":"AAKAA,EAAW,OAAOC;AAQX,SAASD,EAAWE,GAAMC,GAAGC,GAAO;AACzC,MAAIC,IAAQH,EAAK,SAAS,IACtBI,IAAW,KACXC,IAAQ;AAKZ,SAAO,IAAI,OAAO,aAAaD,IAAW,UAAU,EAAE,KAAKD,CAAK;AAC9D,IAAAC,KAAY;AAmBd,OAbE,WAAW,KAAKD,CAAK,MACnB,WAAW,KAAKA,CAAK,KAAK,WAAW,KAAKA,CAAK,KAAM,QAAQ,KAAKA,CAAK,OAEzEA,IAAQ,MAAMA,IAAQ,MAUjB,EAAEE,IAAQH,EAAM,OAAO,UAAQ;AACpC,UAAMI,IAAUJ,EAAM,OAAOG,CAAK,GAC5BE,IAAaL,EAAM,eAAeI,CAAO;AAE/C,QAAIE;AAKJ,QAAKF,EAAQ;AAEb,aAAQE,IAAQD,EAAW,KAAKJ,CAAK,KAAI;AACvC,YAAIM,IAAWD,EAAM;AAGrB,QACEL,EAAM,WAAWM,CAAQ,MAAM,MAC/BN,EAAM,WAAWM,IAAW,CAAC,MAAM,MAEnCA,KAGFN,IAAQA,EAAM,MAAM,GAAGM,CAAQ,IAAI,MAAMN,EAAM,MAAMK,EAAM,QAAQ,CAAC;AAAA,MACtE;AAAA,EACF;AAEA,SAAOJ,IAAWD,IAAQC;AAC5B;AAKA,SAASL,IAAiB;AACxB,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link-reference.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/link-reference.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {LinkReference, Parents} from 'mdast'\n */\n\nlinkReference.peek = linkReferencePeek\n\n/**\n * @param {LinkReference} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function linkReference(node, _, state, info) {\n const type = node.referenceType\n const exit = state.enter('linkReference')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('[')\n const text = state.containerPhrasing(node, {\n before: value,\n after: ']',\n ...tracker.current()\n })\n value += tracker.move(text + '][')\n\n subexit()\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n subexit = state.enter('reference')\n // Note: for proper tracking, we should reset the output positions when we end\n // up making a `shortcut` reference, because then there is no brace output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n const reference = state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n subexit()\n state.stack = stack\n exit()\n\n if (type === 'full' || !text || text !== reference) {\n value += tracker.move(reference + ']')\n } else if (type === 'shortcut') {\n // Remove the unwanted `[`.\n value = value.slice(0, -1)\n } else {\n value += tracker.move(']')\n }\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction linkReferencePeek() {\n return '['\n}\n"],"names":["linkReference","linkReferencePeek","node","_","state","info","type","exit","subexit","tracker","value","text","stack","reference"],"mappings":"AAKAA,EAAc,OAAOC;AASd,SAASD,EAAcE,GAAMC,GAAGC,GAAOC,GAAM;AAClD,QAAMC,IAAOJ,EAAK,eACZK,IAAOH,EAAM,MAAM,eAAe;AACxC,MAAII,IAAUJ,EAAM,MAAM,OAAO;AACjC,QAAMK,IAAUL,EAAM,cAAcC,CAAI;AACxC,MAAIK,IAAQD,EAAQ,KAAK,GAAG;AAC5B,QAAME,IAAOP,EAAM,kBAAkBF,GAAM;AAAA,IACzC,QAAQQ;AAAA,IACR,OAAO;AAAA,IACP,GAAGD,EAAQ,QAAO;AAAA,EACtB,CAAG;AACD,EAAAC,KAASD,EAAQ,KAAKE,IAAO,IAAI,GAEjCH,EAAO;AAEP,QAAMI,IAAQR,EAAM;AACpB,EAAAA,EAAM,QAAQ,CAAA,GACdI,IAAUJ,EAAM,MAAM,WAAW;AAKjC,QAAMS,IAAYT,EAAM,KAAKA,EAAM,cAAcF,CAAI,GAAG;AAAA,IACtD,QAAQQ;AAAA,IACR,OAAO;AAAA,IACP,GAAGD,EAAQ,QAAO;AAAA,EACtB,CAAG;AACD,SAAAD,EAAO,GACPJ,EAAM,QAAQQ,GACdL,EAAI,GAEAD,MAAS,UAAU,CAACK,KAAQA,MAASE,IACvCH,KAASD,EAAQ,KAAKI,IAAY,GAAG,IAC5BP,MAAS,aAElBI,IAAQA,EAAM,MAAM,GAAG,EAAE,IAEzBA,KAASD,EAAQ,KAAK,GAAG,GAGpBC;AACT;AAKA,SAAST,IAAoB;AAC3B,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/link.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Link, Parents} from 'mdast'\n * @import {Exit} from '../types.js'\n */\n\nimport {checkQuote} from '../util/check-quote.js'\nimport {formatLinkAsAutolink} from '../util/format-link-as-autolink.js'\n\nlink.peek = linkPeek\n\n/**\n * @param {Link} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function link(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const tracker = state.createTracker(info)\n /** @type {Exit} */\n let exit\n /** @type {Exit} */\n let subexit\n\n if (formatLinkAsAutolink(node, state)) {\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n exit = state.enter('autolink')\n let value = tracker.move('<')\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: '>',\n ...tracker.current()\n })\n )\n value += tracker.move('>')\n exit()\n state.stack = stack\n return value\n }\n\n exit = state.enter('link')\n subexit = state.enter('label')\n let value = tracker.move('[')\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: '](',\n ...tracker.current()\n })\n )\n value += tracker.move('](')\n subexit()\n\n if (\n // If there’s no url but there is a title…\n (!node.url && node.title) ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : ')',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n value += tracker.move(')')\n\n exit()\n return value\n}\n\n/**\n * @param {Link} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @returns {string}\n */\nfunction linkPeek(node, _, state) {\n return formatLinkAsAutolink(node, state) ? '<' : '['\n}\n"],"names":["link","linkPeek","node","_","state","info","quote","checkQuote","suffix","tracker","exit","subexit","formatLinkAsAutolink","stack","value"],"mappings":";;AASAA,EAAK,OAAOC;AASL,SAASD,EAAKE,GAAMC,GAAGC,GAAOC,GAAM;AACzC,QAAMC,IAAQC,EAAWH,CAAK,GACxBI,IAASF,MAAU,MAAM,UAAU,cACnCG,IAAUL,EAAM,cAAcC,CAAI;AAExC,MAAIK,GAEAC;AAEJ,MAAIC,EAAqBV,GAAME,CAAK,GAAG;AAErC,UAAMS,IAAQT,EAAM;AACpB,IAAAA,EAAM,QAAQ,CAAA,GACdM,IAAON,EAAM,MAAM,UAAU;AAC7B,QAAIU,IAAQL,EAAQ,KAAK,GAAG;AAC5B,WAAAK,KAASL,EAAQ;AAAA,MACfL,EAAM,kBAAkBF,GAAM;AAAA,QAC5B,QAAQY;AAAA,QACR,OAAO;AAAA,QACP,GAAGL,EAA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,GACIK,KAASL,EAAQ,KAAKH,CAAK,GAC3BK,EAAO,IAGTG,KAASL,EAAQ,KAAK,GAAG,GAEzBC,EAAI,GACGI;AACT;AAQA,SAASb,EAASC,GAAMC,GAAGC,GAAO;AAChC,SAAOQ,EAAqBV,GAAME,CAAK,IAAI,MAAM;AACnD;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/list-item.js"],"sourcesContent":["/**\n * @import {Info, Map, State} from 'mdast-util-to-markdown'\n * @import {ListItem, Parents} from 'mdast'\n */\n\nimport {checkBullet} from '../util/check-bullet.js'\nimport {checkListItemIndent} from '../util/check-list-item-indent.js'\n\n/**\n * @param {ListItem} node\n * @param {Parents | undefined} parent\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function listItem(node, parent, state, info) {\n const listItemIndent = checkListItemIndent(state)\n let bullet = state.bulletCurrent || checkBullet(state)\n\n // Add the marker value for ordered lists.\n if (parent && parent.type === 'list' && parent.ordered) {\n bullet =\n (typeof parent.start === 'number' && parent.start > -1\n ? parent.start\n : 1) +\n (state.options.incrementListMarker === false\n ? 0\n : parent.children.indexOf(node)) +\n bullet\n }\n\n let size = bullet.length + 1\n\n if (\n listItemIndent === 'tab' ||\n (listItemIndent === 'mixed' &&\n ((parent && parent.type === 'list' && parent.spread) || node.spread))\n ) {\n size = Math.ceil(size / 4) * 4\n }\n\n const tracker = state.createTracker(info)\n tracker.move(bullet + ' '.repeat(size - bullet.length))\n tracker.shift(size)\n const exit = state.enter('listItem')\n const value = state.indentLines(\n state.containerFlow(node, tracker.current()),\n map\n )\n exit()\n\n return value\n\n /** @type {Map} */\n function map(line, index, blank) {\n if (index) {\n return (blank ? '' : ' '.repeat(size)) + line\n }\n\n return (blank ? bullet : bullet + ' '.repeat(size - bullet.length)) + line\n }\n}\n"],"names":["listItem","node","parent","state","info","listItemIndent","checkListItemIndent","bullet","checkBullet","size","tracker","exit","value","map","line","index","blank"],"mappings":";;AAeO,SAASA,EAASC,GAAMC,GAAQC,GAAOC,GAAM;AAClD,QAAMC,IAAiBC,EAAoBH,CAAK;AAChD,MAAII,IAASJ,EAAM,iBAAiBK,EAAYL,CAAK;AAGrD,EAAID,KAAUA,EAAO,SAAS,UAAUA,EAAO,YAC7CK,KACG,OAAOL,EAAO,SAAU,YAAYA,EAAO,QAAQ,KAChDA,EAAO,QACP,MACHC,EAAM,QAAQ,wBAAwB,KACnC,IACAD,EAAO,SAAS,QAAQD,CAAI,KAChCM;AAGJ,MAAIE,IAAOF,EAAO,SAAS;AAE3B,GACEF,MAAmB,SAClBA,MAAmB,YAChBH,KAAUA,EAAO,SAAS,UAAUA,EAAO,UAAWD,EAAK,aAE/DQ,IAAO,KAAK,KAAKA,IAAO,CAAC,IAAI;AAG/B,QAAMC,IAAUP,EAAM,cAAcC,CAAI;AACxC,EAAAM,EAAQ,KAAKH,IAAS,IAAI,OAAOE,IAAOF,EAAO,MAAM,CAAC,GACtDG,EAAQ,MAAMD,CAAI;AAClB,QAAME,IAAOR,EAAM,MAAM,UAAU,GAC7BS,IAAQT,EAAM;AAAA,IAClBA,EAAM,cAAcF,GAAMS,EAAQ,QAAO,CAAE;AAAA,IAC3CG;AAAA,EACJ;AACE,SAAAF,EAAI,GAEGC;AAGP,WAASC,EAAIC,GAAMC,GAAOC,GAAO;AAC/B,WAAID,KACMC,IAAQ,KAAK,IAAI,OAAOP,CAAI,KAAKK,KAGnCE,IAAQT,IAASA,IAAS,IAAI,OAAOE,IAAOF,EAAO,MAAM,KAAKO;AAAA,EACxE;AACF;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/list.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {List, Parents} from 'mdast'\n */\n\nimport {checkBullet} from '../util/check-bullet.js'\nimport {checkBulletOther} from '../util/check-bullet-other.js'\nimport {checkBulletOrdered} from '../util/check-bullet-ordered.js'\nimport {checkRule} from '../util/check-rule.js'\n\n/**\n * @param {List} node\n * @param {Parents | undefined} parent\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function list(node, parent, state, info) {\n const exit = state.enter('list')\n const bulletCurrent = state.bulletCurrent\n /** @type {string} */\n let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state)\n /** @type {string} */\n const bulletOther = node.ordered\n ? bullet === '.'\n ? ')'\n : '.'\n : checkBulletOther(state)\n let useDifferentMarker =\n parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false\n\n if (!node.ordered) {\n const firstListItem = node.children ? node.children[0] : undefined\n\n // If there’s an empty first list item directly in two list items,\n // we have to use a different bullet:\n //\n // ```markdown\n // * - *\n // ```\n //\n // …because otherwise it would become one big thematic break.\n if (\n // Bullet could be used as a thematic break marker:\n (bullet === '*' || bullet === '-') &&\n // Empty first list item:\n firstListItem &&\n (!firstListItem.children || !firstListItem.children[0]) &&\n // Directly in two other list items:\n state.stack[state.stack.length - 1] === 'list' &&\n state.stack[state.stack.length - 2] === 'listItem' &&\n state.stack[state.stack.length - 3] === 'list' &&\n state.stack[state.stack.length - 4] === 'listItem' &&\n // That are each the first child.\n state.indexStack[state.indexStack.length - 1] === 0 &&\n state.indexStack[state.indexStack.length - 2] === 0 &&\n state.indexStack[state.indexStack.length - 3] === 0\n ) {\n useDifferentMarker = true\n }\n\n // If there’s a thematic break at the start of the first list item,\n // we have to use a different bullet:\n //\n // ```markdown\n // * ---\n // ```\n //\n // …because otherwise it would become one big thematic break.\n if (checkRule(state) === bullet && firstListItem) {\n let index = -1\n\n while (++index < node.children.length) {\n const item = node.children[index]\n\n if (\n item &&\n item.type === 'listItem' &&\n item.children &&\n item.children[0] &&\n item.children[0].type === 'thematicBreak'\n ) {\n useDifferentMarker = true\n break\n }\n }\n }\n }\n\n if (useDifferentMarker) {\n bullet = bulletOther\n }\n\n state.bulletCurrent = bullet\n const value = state.containerFlow(node, info)\n state.bulletLastUsed = bullet\n state.bulletCurrent = bulletCurrent\n exit()\n return value\n}\n"],"names":["list","node","parent","state","info","exit","bulletCurrent","bullet","checkBulletOrdered","checkBullet","bulletOther","checkBulletOther","useDifferentMarker","firstListItem","checkRule","index","item","value"],"mappings":";;;;AAiBO,SAASA,EAAKC,GAAMC,GAAQC,GAAOC,GAAM;AAC9C,QAAMC,IAAOF,EAAM,MAAM,MAAM,GACzBG,IAAgBH,EAAM;AAE5B,MAAII,IAASN,EAAK,UAAUO,EAAmBL,CAAK,IAAIM,EAAYN,CAAK;AAEzE,QAAMO,IAAcT,EAAK,UACrBM,MAAW,MACT,MACA,MACFI,EAAiBR,CAAK;AAC1B,MAAIS,IACFV,KAAUC,EAAM,iBAAiBI,MAAWJ,EAAM,iBAAiB;AAErE,MAAI,CAACF,EAAK,SAAS;AACjB,UAAMY,IAAgBZ,EAAK,WAAWA,EAAK,SAAS,CAAC,IAAI;AAqCzD;AAAA;AAAA,OAzBGM,MAAW,OAAOA,MAAW;AAAA,MAE9BM,MACC,CAACA,EAAc,YAAY,CAACA,EAAc,SAAS,CAAC;AAAA,MAErDV,EAAM,MAAMA,EAAM,MAAM,SAAS,CAAC,MAAM,UACxCA,EAAM,MAAMA,EAAM,MAAM,SAAS,CAAC,MAAM,cACxCA,EAAM,MAAMA,EAAM,MAAM,SAAS,CAAC,MAAM,UACxCA,EAAM,MAAMA,EAAM,MAAM,SAAS,CAAC,MAAM;AAAA,MAExCA,EAAM,WAAWA,EAAM,WAAW,SAAS,CAAC,MAAM,KAClDA,EAAM,WAAWA,EAAM,WAAW,SAAS,CAAC,MAAM,KAClDA,EAAM,WAAWA,EAAM,WAAW,SAAS,CAAC,MAAM,MAElDS,IAAqB,KAWnBE,EAAUX,CAAK,MAAMI,KAAUM;AAAA,MAAe;AAChD,UAAIE,IAAQ;AAEZ,aAAO,EAAEA,IAAQd,EAAK,SAAS,UAAQ;AACrC,cAAMe,IAAOf,EAAK,SAASc,CAAK;AAEhC,YACEC,KACAA,EAAK,SAAS,cACdA,EAAK,YACLA,EAAK,SAAS,CAAC,KACfA,EAAK,SAAS,CAAC,EAAE,SAAS,iBAC1B;AACA,UAAAJ,IAAqB;AACrB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,EAAIA,MACFL,IAASG,IAGXP,EAAM,gBAAgBI;AACtB,QAAMU,IAAQd,EAAM,cAAcF,GAAMG,CAAI;AAC5C,SAAAD,EAAM,iBAAiBI,GACvBJ,EAAM,gBAAgBG,GACtBD,EAAI,GACGY;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/paragraph.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Paragraph, Parents} from 'mdast'\n */\n\n/**\n * @param {Paragraph} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function paragraph(node, _, state, info) {\n const exit = state.enter('paragraph')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, info)\n subexit()\n exit()\n return value\n}\n"],"names":["paragraph","node","_","state","info","exit","subexit","value"],"mappings":"AAYO,SAASA,EAAUC,GAAMC,GAAGC,GAAOC,GAAM;AAC9C,QAAMC,IAAOF,EAAM,MAAM,WAAW,GAC9BG,IAAUH,EAAM,MAAM,UAAU,GAChCI,IAAQJ,EAAM,kBAAkBF,GAAMG,CAAI;AAChD,SAAAE,EAAO,GACPD,EAAI,GACGE;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"root.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/root.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Parents, Root} from 'mdast'\n */\n\nimport {phrasing} from 'mdast-util-phrasing'\n\n/**\n * @param {Root} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function root(node, _, state, info) {\n // Note: `html` nodes are ambiguous.\n const hasPhrasing = node.children.some(function (d) {\n return phrasing(d)\n })\n\n const container = hasPhrasing ? state.containerPhrasing : state.containerFlow\n return container.call(state, node, info)\n}\n"],"names":["root","node","_","state","info","d","phrasing"],"mappings":";AAcO,SAASA,EAAKC,GAAMC,GAAGC,GAAOC,GAAM;AAOzC,UALoBH,EAAK,SAAS,KAAK,SAAUI,GAAG;AAClD,WAAOC,EAASD,CAAC;AAAA,EACnB,CAAC,IAE+BF,EAAM,oBAAoBA,EAAM,eAC/C,KAAKA,GAAOF,GAAMG,CAAI;AACzC;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"strong.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/strong.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Parents, Strong} from 'mdast'\n */\n\nimport {checkStrong} from '../util/check-strong.js'\nimport {encodeCharacterReference} from '../util/encode-character-reference.js'\nimport {encodeInfo} from '../util/encode-info.js'\n\nstrong.peek = strongPeek\n\n/**\n * @param {Strong} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function strong(node, _, state, info) {\n const marker = checkStrong(state)\n const exit = state.enter('strong')\n const tracker = state.createTracker(info)\n const before = tracker.move(marker + marker)\n\n let between = tracker.move(\n state.containerPhrasing(node, {\n after: marker,\n before,\n ...tracker.current()\n })\n )\n const betweenHead = between.charCodeAt(0)\n const open = encodeInfo(\n info.before.charCodeAt(info.before.length - 1),\n betweenHead,\n marker\n )\n\n if (open.inside) {\n between = encodeCharacterReference(betweenHead) + between.slice(1)\n }\n\n const betweenTail = between.charCodeAt(between.length - 1)\n const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker)\n\n if (close.inside) {\n between = between.slice(0, -1) + encodeCharacterReference(betweenTail)\n }\n\n const after = tracker.move(marker + marker)\n\n exit()\n\n state.attentionEncodeSurroundingInfo = {\n after: close.outside,\n before: open.outside\n }\n return before + between + after\n}\n\n/**\n * @param {Strong} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nfunction strongPeek(_, _1, state) {\n return state.options.strong || '*'\n}\n"],"names":["strong","strongPeek","node","_","state","info","marker","checkStrong","exit","tracker","before","between","betweenHead","open","encodeInfo","encodeCharacterReference","betweenTail","close","after","_1"],"mappings":";;;AASAA,EAAO,OAAOC;AASP,SAASD,EAAOE,GAAMC,GAAGC,GAAOC,GAAM;AAC3C,QAAMC,IAASC,EAAYH,CAAK,GAC1BI,IAAOJ,EAAM,MAAM,QAAQ,GAC3BK,IAAUL,EAAM,cAAcC,CAAI,GAClCK,IAASD,EAAQ,KAAKH,IAASA,CAAM;AAE3C,MAAIK,IAAUF,EAAQ;AAAA,IACpBL,EAAM,kBAAkBF,GAAM;AAAA,MAC5B,OAAOI;AAAA,MACP,QAAAI;AAAA,MACA,GAAGD,EAAQ,QAAO;AAAA,IACxB,CAAK;AAAA,EACL;AACE,QAAMG,IAAcD,EAAQ,WAAW,CAAC,GAClCE,IAAOC;AAAA,IACXT,EAAK,OAAO,WAAWA,EAAK,OAAO,SAAS,CAAC;AAAA,IAC7CO;AAAA,IACAN;AAAA,EACJ;AAEE,EAAIO,EAAK,WACPF,IAAUI,EAAyBH,CAAW,IAAID,EAAQ,MAAM,CAAC;AAGnE,QAAMK,IAAcL,EAAQ,WAAWA,EAAQ,SAAS,CAAC,GACnDM,IAAQH,EAAWT,EAAK,MAAM,WAAW,CAAC,GAAGW,GAAaV,CAAM;AAEtE,EAAIW,EAAM,WACRN,IAAUA,EAAQ,MAAM,GAAG,EAAE,IAAII,EAAyBC,CAAW;AAGvE,QAAME,IAAQT,EAAQ,KAAKH,IAASA,CAAM;AAE1C,SAAAE,EAAI,GAEJJ,EAAM,iCAAiC;AAAA,IACrC,OAAOa,EAAM;AAAA,IACb,QAAQJ,EAAK;AAAA,EACjB,GACSH,IAASC,IAAUO;AAC5B;AAQA,SAASjB,EAAWE,GAAGgB,GAAIf,GAAO;AAChC,SAAOA,EAAM,QAAQ,UAAU;AACjC;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/text.js"],"sourcesContent":["/**\n * @import {Info, State} from 'mdast-util-to-markdown'\n * @import {Parents, Text} from 'mdast'\n */\n\n/**\n * @param {Text} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function text(node, _, state, info) {\n return state.safe(node.value, info)\n}\n"],"names":["text","node","_","state","info"],"mappings":"AAYO,SAASA,EAAKC,GAAMC,GAAGC,GAAOC,GAAM;AACzC,SAAOD,EAAM,KAAKF,EAAK,OAAOG,CAAI;AACpC;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thematic-break.js","sources":["../../../../../../../../node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js"],"sourcesContent":["/**\n * @import {State} from 'mdast-util-to-markdown'\n * @import {Parents, ThematicBreak} from 'mdast'\n */\n\nimport {checkRuleRepetition} from '../util/check-rule-repetition.js'\nimport {checkRule} from '../util/check-rule.js'\n\n/**\n * @param {ThematicBreak} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nexport function thematicBreak(_, _1, state) {\n const value = (\n checkRule(state) + (state.options.ruleSpaces ? ' ' : '')\n ).repeat(checkRuleRepetition(state))\n\n return state.options.ruleSpaces ? value.slice(0, -1) : value\n}\n"],"names":["thematicBreak","_","_1","state","value","checkRule","checkRuleRepetition"],"mappings":";;AAcO,SAASA,EAAcC,GAAGC,GAAIC,GAAO;AAC1C,QAAMC,KACJC,EAAUF,CAAK,KAAKA,EAAM,QAAQ,aAAa,MAAM,KACrD,OAAOG,EAAoBH,CAAK,CAAC;AAEnC,SAAOA,EAAM,QAAQ,aAAaC,EAAM,MAAM,GAAG,EAAE,IAAIA;AACzD;","x_google_ignoreList":[0]}
|