@fluxdown/vue-lynx-plugins 0.0.0-stage → 0.2.1
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/CHANGELOG.md +41 -0
- package/LICENSE +21 -0
- package/README.md +4 -2
- package/dist/esm/base/components/animated-text/animation.d.ts +6 -0
- package/dist/esm/base/components/animated-text/animation.js +67 -0
- package/dist/esm/base/components/animated-text/index.d.ts +16 -0
- package/dist/esm/base/components/animated-text/index.js +86 -0
- package/dist/esm/base/components/index.d.ts +1 -0
- package/dist/esm/base/components/index.js +3 -0
- package/dist/esm/base/consts/defaults.d.ts +1 -0
- package/dist/esm/base/consts/defaults.js +3 -0
- package/dist/esm/base/consts/index.d.ts +1 -0
- package/dist/esm/base/consts/index.js +3 -0
- package/dist/esm/base/context/index.d.ts +2 -0
- package/dist/esm/base/context/index.js +5 -0
- package/dist/esm/base/context/text-animation/index.d.ts +14 -0
- package/dist/esm/base/context/text-animation/index.js +22 -0
- package/dist/esm/base/context/text-animation/type.d.ts +4 -0
- package/dist/esm/base/context/text-animation/type.js +2 -0
- package/dist/esm/base/context/text-layout-width/index.d.ts +11 -0
- package/dist/esm/base/context/text-layout-width/index.js +20 -0
- package/dist/esm/base/index.d.ts +6 -0
- package/dist/esm/base/index.js +13 -0
- package/dist/esm/base/render/index.d.ts +2 -0
- package/dist/esm/base/render/index.js +5 -0
- package/dist/esm/base/render/layout.d.ts +9 -0
- package/dist/esm/base/render/layout.js +111 -0
- package/dist/esm/base/render/props.d.ts +3 -0
- package/dist/esm/base/render/props.js +43 -0
- package/dist/esm/base/slot/base.d.ts +5 -0
- package/dist/esm/base/slot/base.js +8 -0
- package/dist/esm/base/slot/index.d.ts +3 -0
- package/dist/esm/base/slot/index.js +7 -0
- package/dist/esm/base/slot/type.d.ts +92 -0
- package/dist/esm/base/slot/type.js +2 -0
- package/dist/esm/base/slot/utils/create.d.ts +3 -0
- package/dist/esm/base/slot/utils/create.js +7 -0
- package/dist/esm/base/slot/utils/index.d.ts +3 -0
- package/dist/esm/base/slot/utils/index.js +7 -0
- package/dist/esm/base/slot/utils/style.d.ts +1 -0
- package/dist/esm/base/slot/utils/style.js +3 -0
- package/dist/esm/base/slot/utils/url.d.ts +4 -0
- package/dist/esm/base/slot/utils/url.js +21 -0
- package/dist/esm/base/theme/index.d.ts +25 -0
- package/dist/esm/base/theme/index.js +78 -0
- package/dist/esm/base/theme/presets/base.d.ts +2 -0
- package/dist/esm/base/theme/presets/base.js +117 -0
- package/dist/esm/base/theme/presets/dark.d.ts +2 -0
- package/dist/esm/base/theme/presets/dark.js +33 -0
- package/dist/esm/base/theme/presets/index.d.ts +4 -0
- package/dist/esm/base/theme/presets/index.js +13 -0
- package/dist/esm/base/theme/presets/light.d.ts +2 -0
- package/dist/esm/base/theme/presets/light.js +33 -0
- package/dist/esm/base/theme/type.d.ts +141 -0
- package/dist/esm/base/theme/type.js +2 -0
- package/dist/esm/base/theme/utils.d.ts +4 -0
- package/dist/esm/base/theme/utils.js +38 -0
- package/dist/esm/env.d.ts +1 -0
- package/dist/esm/jsx-runtime.d.ts +27 -0
- package/dist/esm/jsx-runtime.js +6 -0
- package/dist/esm/plugins/blockquote/index.d.ts +2 -0
- package/dist/esm/plugins/blockquote/index.js +19 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/index.d.ts +13 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/index.js +14 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/renderer/index.js +38 -0
- package/dist/esm/plugins/blockquote/slot/index.d.ts +1 -0
- package/dist/esm/plugins/blockquote/slot/index.js +3 -0
- package/dist/esm/plugins/break-line/index.d.ts +2 -0
- package/dist/esm/plugins/break-line/index.js +19 -0
- package/dist/esm/plugins/break-line/slot/break-line/index.d.ts +13 -0
- package/dist/esm/plugins/break-line/slot/break-line/index.js +14 -0
- package/dist/esm/plugins/break-line/slot/break-line/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/break-line/slot/break-line/renderer/index.js +18 -0
- package/dist/esm/plugins/break-line/slot/index.d.ts +1 -0
- package/dist/esm/plugins/break-line/slot/index.js +3 -0
- package/dist/esm/plugins/code/index.d.ts +4 -0
- package/dist/esm/plugins/code/index.js +23 -0
- package/dist/esm/plugins/code/render/code/index.d.ts +13 -0
- package/dist/esm/plugins/code/render/code/index.js +45 -0
- package/dist/esm/plugins/code/render/code/utils.d.ts +7 -0
- package/dist/esm/plugins/code/render/code/utils.js +61 -0
- package/dist/esm/plugins/code/render/index.d.ts +1 -0
- package/dist/esm/plugins/code/render/index.js +3 -0
- package/dist/esm/plugins/code/slot/code-block/index.d.ts +13 -0
- package/dist/esm/plugins/code/slot/code-block/index.js +14 -0
- package/dist/esm/plugins/code/slot/code-block/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/code/slot/code-block/renderer/index.js +43 -0
- package/dist/esm/plugins/code/slot/code-header/index.d.ts +24 -0
- package/dist/esm/plugins/code/slot/code-header/index.js +14 -0
- package/dist/esm/plugins/code/slot/code-header/renderer/index.d.ts +13 -0
- package/dist/esm/plugins/code/slot/code-header/renderer/index.js +122 -0
- package/dist/esm/plugins/code/slot/code-highlighter/index.d.ts +14 -0
- package/dist/esm/plugins/code/slot/code-highlighter/index.js +16 -0
- package/dist/esm/plugins/code/slot/code-highlighter/renderer/index.d.ts +9 -0
- package/dist/esm/plugins/code/slot/code-highlighter/renderer/index.js +61 -0
- package/dist/esm/plugins/code/slot/code-highlighter/renderer/style.css +4 -0
- package/dist/esm/plugins/code/slot/index.d.ts +3 -0
- package/dist/esm/plugins/code/slot/index.js +7 -0
- package/dist/esm/plugins/code-prism/index.d.ts +3 -0
- package/dist/esm/plugins/code-prism/index.js +19 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/index.d.ts +16 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/index.js +14 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/hooks.d.ts +5 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/hooks.js +36 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/index.js +64 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/languages.d.ts +298 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/languages.js +899 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/runtime.d.ts +2 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/runtime.js +11 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/utils.d.ts +9 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/utils.js +98 -0
- package/dist/esm/plugins/code-prism/slot/index.d.ts +1 -0
- package/dist/esm/plugins/code-prism/slot/index.js +3 -0
- package/dist/esm/plugins/code-shiki/index.d.ts +3 -0
- package/dist/esm/plugins/code-shiki/index.js +19 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/index.d.ts +16 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/index.js +14 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/hooks.d.ts +2 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/hooks.js +22 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/index.js +80 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/utils.d.ts +5 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/utils.js +142 -0
- package/dist/esm/plugins/code-shiki/slot/index.d.ts +1 -0
- package/dist/esm/plugins/code-shiki/slot/index.js +3 -0
- package/dist/esm/plugins/effect-chunk/index.d.ts +2 -0
- package/dist/esm/plugins/effect-chunk/index.js +19 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/index.d.ts +17 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/index.js +16 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/index.d.ts +10 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/index.js +54 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/style.css +6 -0
- package/dist/esm/plugins/effect-chunk/slot/index.d.ts +1 -0
- package/dist/esm/plugins/effect-chunk/slot/index.js +3 -0
- package/dist/esm/plugins/effect-scale/index.d.ts +4 -0
- package/dist/esm/plugins/effect-scale/index.js +22 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/index.d.ts +13 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/index.js +48 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/utils.d.ts +8 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/utils.js +27 -0
- package/dist/esm/plugins/effect-scale/render/index.d.ts +1 -0
- package/dist/esm/plugins/effect-scale/render/index.js +3 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/index.d.ts +17 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/index.js +16 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/animation.d.ts +12 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/animation.js +123 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/index.d.ts +10 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/index.js +82 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/style.css +16 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/index.d.ts +14 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/index.js +16 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/renderer/index.d.ts +8 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/renderer/index.js +35 -0
- package/dist/esm/plugins/effect-scale/slot/index.d.ts +2 -0
- package/dist/esm/plugins/effect-scale/slot/index.js +5 -0
- package/dist/esm/plugins/effect-shad/index.d.ts +4 -0
- package/dist/esm/plugins/effect-shad/index.js +21 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/index.d.ts +13 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/index.js +36 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/utils.d.ts +5 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/utils.js +21 -0
- package/dist/esm/plugins/effect-shad/render/index.d.ts +1 -0
- package/dist/esm/plugins/effect-shad/render/index.js +3 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/index.d.ts +17 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/index.js +16 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/index.d.ts +10 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/index.js +193 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/style.css +19 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/utils.d.ts +23 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/utils.js +137 -0
- package/dist/esm/plugins/effect-shad/slot/index.d.ts +1 -0
- package/dist/esm/plugins/effect-shad/slot/index.js +3 -0
- package/dist/esm/plugins/effect-suffix/index.d.ts +2 -0
- package/dist/esm/plugins/effect-suffix/index.js +19 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/index.d.ts +14 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/index.js +16 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/index.d.ts +9 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/index.js +62 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/style.css +63 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/utils.d.ts +17 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/utils.js +36 -0
- package/dist/esm/plugins/effect-suffix/slot/index.d.ts +1 -0
- package/dist/esm/plugins/effect-suffix/slot/index.js +3 -0
- package/dist/esm/plugins/emphasis/index.d.ts +2 -0
- package/dist/esm/plugins/emphasis/index.js +19 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/index.d.ts +13 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/index.js +14 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/renderer/index.js +33 -0
- package/dist/esm/plugins/emphasis/slot/index.d.ts +1 -0
- package/dist/esm/plugins/emphasis/slot/index.js +3 -0
- package/dist/esm/plugins/fallback/index.d.ts +4 -0
- package/dist/esm/plugins/fallback/index.js +21 -0
- package/dist/esm/plugins/fallback/render/fallback/index.d.ts +18 -0
- package/dist/esm/plugins/fallback/render/fallback/index.js +61 -0
- package/dist/esm/plugins/fallback/render/index.d.ts +1 -0
- package/dist/esm/plugins/fallback/render/index.js +3 -0
- package/dist/esm/plugins/fallback/slot/element/index.d.ts +13 -0
- package/dist/esm/plugins/fallback/slot/element/index.js +14 -0
- package/dist/esm/plugins/fallback/slot/element/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/fallback/slot/element/renderer/index.js +305 -0
- package/dist/esm/plugins/fallback/slot/index.d.ts +1 -0
- package/dist/esm/plugins/fallback/slot/index.js +3 -0
- package/dist/esm/plugins/heading/index.d.ts +2 -0
- package/dist/esm/plugins/heading/index.js +19 -0
- package/dist/esm/plugins/heading/slot/heading/index.d.ts +13 -0
- package/dist/esm/plugins/heading/slot/heading/index.js +14 -0
- package/dist/esm/plugins/heading/slot/heading/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/heading/slot/heading/renderer/index.js +44 -0
- package/dist/esm/plugins/heading/slot/index.d.ts +1 -0
- package/dist/esm/plugins/heading/slot/index.js +3 -0
- package/dist/esm/plugins/image/index.d.ts +2 -0
- package/dist/esm/plugins/image/index.js +19 -0
- package/dist/esm/plugins/image/slot/image/index.d.ts +13 -0
- package/dist/esm/plugins/image/slot/image/index.js +14 -0
- package/dist/esm/plugins/image/slot/image/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/image/slot/image/renderer/index.js +48 -0
- package/dist/esm/plugins/image/slot/index.d.ts +1 -0
- package/dist/esm/plugins/image/slot/index.js +3 -0
- package/dist/esm/plugins/link/index.d.ts +2 -0
- package/dist/esm/plugins/link/index.js +19 -0
- package/dist/esm/plugins/link/slot/index.d.ts +1 -0
- package/dist/esm/plugins/link/slot/index.js +3 -0
- package/dist/esm/plugins/link/slot/link/index.d.ts +13 -0
- package/dist/esm/plugins/link/slot/link/index.js +14 -0
- package/dist/esm/plugins/link/slot/link/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/link/slot/link/renderer/index.js +43 -0
- package/dist/esm/plugins/list/index.d.ts +2 -0
- package/dist/esm/plugins/list/index.js +19 -0
- package/dist/esm/plugins/list/slot/index.d.ts +1 -0
- package/dist/esm/plugins/list/slot/index.js +3 -0
- package/dist/esm/plugins/list/slot/list/index.d.ts +13 -0
- package/dist/esm/plugins/list/slot/list/index.js +14 -0
- package/dist/esm/plugins/list/slot/list/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/list/slot/list/renderer/index.js +26 -0
- package/dist/esm/plugins/paragraph/index.d.ts +2 -0
- package/dist/esm/plugins/paragraph/index.js +19 -0
- package/dist/esm/plugins/paragraph/slot/index.d.ts +1 -0
- package/dist/esm/plugins/paragraph/slot/index.js +3 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/index.d.ts +13 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/index.js +14 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/renderer/index.js +29 -0
- package/dist/esm/plugins/strong/index.d.ts +2 -0
- package/dist/esm/plugins/strong/index.js +19 -0
- package/dist/esm/plugins/strong/slot/index.d.ts +1 -0
- package/dist/esm/plugins/strong/slot/index.js +3 -0
- package/dist/esm/plugins/strong/slot/strong/index.d.ts +13 -0
- package/dist/esm/plugins/strong/slot/strong/index.js +14 -0
- package/dist/esm/plugins/strong/slot/strong/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/strong/slot/strong/renderer/index.js +34 -0
- package/dist/esm/plugins/table/index.d.ts +4 -0
- package/dist/esm/plugins/table/index.js +23 -0
- package/dist/esm/plugins/table/render/index.d.ts +2 -0
- package/dist/esm/plugins/table/render/index.js +5 -0
- package/dist/esm/plugins/table/render/table/index.d.ts +13 -0
- package/dist/esm/plugins/table/render/table/index.js +64 -0
- package/dist/esm/plugins/table/render/table-cell/index.d.ts +13 -0
- package/dist/esm/plugins/table/render/table-cell/index.js +45 -0
- package/dist/esm/plugins/table/slot/index.d.ts +2 -0
- package/dist/esm/plugins/table/slot/index.js +5 -0
- package/dist/esm/plugins/table/slot/table/index.d.ts +13 -0
- package/dist/esm/plugins/table/slot/table/index.js +14 -0
- package/dist/esm/plugins/table/slot/table/renderer/index.d.ts +6 -0
- package/dist/esm/plugins/table/slot/table/renderer/index.js +38 -0
- package/dist/esm/plugins/table/slot/table/renderer/style.css +11 -0
- package/dist/esm/plugins/table/slot/table-cell/index.d.ts +13 -0
- package/dist/esm/plugins/table/slot/table-cell/index.js +14 -0
- package/dist/esm/plugins/table/slot/table-cell/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/table/slot/table-cell/renderer/index.js +52 -0
- package/dist/esm/plugins/tex/index.d.ts +2 -0
- package/dist/esm/plugins/tex/index.js +19 -0
- package/dist/esm/plugins/tex/slot/index.d.ts +1 -0
- package/dist/esm/plugins/tex/slot/index.js +3 -0
- package/dist/esm/plugins/tex/slot/tex/index.d.ts +14 -0
- package/dist/esm/plugins/tex/slot/tex/index.js +16 -0
- package/dist/esm/plugins/tex/slot/tex/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/tex/slot/tex/renderer/index.js +36 -0
- package/dist/esm/plugins/tex-mathjax/index.d.ts +3 -0
- package/dist/esm/plugins/tex-mathjax/index.js +19 -0
- package/dist/esm/plugins/tex-mathjax/slot/index.d.ts +1 -0
- package/dist/esm/plugins/tex-mathjax/slot/index.js +3 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/index.d.ts +14 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/index.js +16 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/index.js +55 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/utils.d.ts +35 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/utils.js +197 -0
- package/dist/esm/presets/full/index.d.ts +2 -0
- package/dist/esm/presets/full/index.js +85 -0
- package/dist/esm/presets/lite/index.d.ts +2 -0
- package/dist/esm/presets/lite/index.js +77 -0
- package/dist/esm/typings/index.d.ts +2 -0
- package/dist/esm/typings/index.js +7 -0
- package/dist/esm/typings/plugins/index.d.ts +1 -0
- package/dist/esm/typings/plugins/index.js +5 -0
- package/dist/esm/typings/plugins/plugins.d.ts +20 -0
- package/package.json +88 -3
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { liteAdaptor } from "mathjax-full/js/adaptors/liteAdaptor.js";
|
|
2
|
+
import { RegisterHTMLHandler } from "mathjax-full/js/handlers/html.js";
|
|
3
|
+
import { TeX } from "mathjax-full/js/input/tex.js";
|
|
4
|
+
import { mathjax } from "mathjax-full/js/mathjax.js";
|
|
5
|
+
import { SVG } from "mathjax-full/js/output/svg.js";
|
|
6
|
+
import { SafeHandler } from "mathjax-full/js/ui/safe/SafeHandler.js";
|
|
7
|
+
import "mathjax-full/js/input/tex/action/ActionConfiguration.js";
|
|
8
|
+
import "mathjax-full/js/input/tex/ams/AmsConfiguration.js";
|
|
9
|
+
import "mathjax-full/js/input/tex/amscd/AmsCdConfiguration.js";
|
|
10
|
+
import "mathjax-full/js/input/tex/bbox/BboxConfiguration.js";
|
|
11
|
+
import "mathjax-full/js/input/tex/boldsymbol/BoldsymbolConfiguration.js";
|
|
12
|
+
import "mathjax-full/js/input/tex/braket/BraketConfiguration.js";
|
|
13
|
+
import "mathjax-full/js/input/tex/bussproofs/BussproofsConfiguration.js";
|
|
14
|
+
import "mathjax-full/js/input/tex/cancel/CancelConfiguration.js";
|
|
15
|
+
import "mathjax-full/js/input/tex/cases/CasesConfiguration.js";
|
|
16
|
+
import "mathjax-full/js/input/tex/centernot/CenternotConfiguration.js";
|
|
17
|
+
import "mathjax-full/js/input/tex/color/ColorConfiguration.js";
|
|
18
|
+
import "mathjax-full/js/input/tex/colortbl/ColortblConfiguration.js";
|
|
19
|
+
import "mathjax-full/js/input/tex/configmacros/ConfigMacrosConfiguration.js";
|
|
20
|
+
import "mathjax-full/js/input/tex/empheq/EmpheqConfiguration.js";
|
|
21
|
+
import "mathjax-full/js/input/tex/enclose/EncloseConfiguration.js";
|
|
22
|
+
import "mathjax-full/js/input/tex/extpfeil/ExtpfeilConfiguration.js";
|
|
23
|
+
import "mathjax-full/js/input/tex/gensymb/GensymbConfiguration.js";
|
|
24
|
+
import "mathjax-full/js/input/tex/html/HtmlConfiguration.js";
|
|
25
|
+
import "mathjax-full/js/input/tex/mathtools/MathtoolsConfiguration.js";
|
|
26
|
+
import "mathjax-full/js/input/tex/mhchem/MhchemConfiguration.js";
|
|
27
|
+
import "mathjax-full/js/input/tex/newcommand/NewcommandConfiguration.js";
|
|
28
|
+
import "mathjax-full/js/input/tex/physics/PhysicsConfiguration.js";
|
|
29
|
+
import "mathjax-full/js/input/tex/tagformat/TagFormatConfiguration.js";
|
|
30
|
+
import "mathjax-full/js/input/tex/textcomp/TextcompConfiguration.js";
|
|
31
|
+
import "mathjax-full/js/input/tex/textmacros/TextMacrosConfiguration.js";
|
|
32
|
+
import "mathjax-full/js/input/tex/upgreek/UpgreekConfiguration.js";
|
|
33
|
+
import "mathjax-full/js/input/tex/unicode/UnicodeConfiguration.js";
|
|
34
|
+
import "mathjax-full/js/input/tex/verb/VerbConfiguration.js";
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
const texPackages = [
|
|
105
|
+
'base',
|
|
106
|
+
'action',
|
|
107
|
+
'ams',
|
|
108
|
+
'amscd',
|
|
109
|
+
'bbox',
|
|
110
|
+
'boldsymbol',
|
|
111
|
+
'braket',
|
|
112
|
+
'bussproofs',
|
|
113
|
+
'cancel',
|
|
114
|
+
'cases',
|
|
115
|
+
'centernot',
|
|
116
|
+
'color',
|
|
117
|
+
'colortbl',
|
|
118
|
+
'empheq',
|
|
119
|
+
'enclose',
|
|
120
|
+
'extpfeil',
|
|
121
|
+
'gensymb',
|
|
122
|
+
'html',
|
|
123
|
+
'mathtools',
|
|
124
|
+
'mhchem',
|
|
125
|
+
'newcommand',
|
|
126
|
+
'upgreek',
|
|
127
|
+
'unicode',
|
|
128
|
+
'verb',
|
|
129
|
+
'configmacros',
|
|
130
|
+
'tagformat',
|
|
131
|
+
'textcomp',
|
|
132
|
+
'textmacros',
|
|
133
|
+
'physics'
|
|
134
|
+
];
|
|
135
|
+
const adaptor = liteAdaptor();
|
|
136
|
+
SafeHandler(RegisterHTMLHandler(adaptor));
|
|
137
|
+
const renderFormula = (source, mode, color)=>{
|
|
138
|
+
try {
|
|
139
|
+
const document = mathjax.document('', {
|
|
140
|
+
InputJax: new TeX({
|
|
141
|
+
packages: texPackages,
|
|
142
|
+
maxBuffer: 32 * 1024,
|
|
143
|
+
maxMacros: 1000,
|
|
144
|
+
macros: {
|
|
145
|
+
equalparallel: '{\\lower{2.6pt}{\\arrowvert\\hspace{-4.2pt}\\arrowvert}\\above{-2pt}\\raise{7.5pt}{=}}',
|
|
146
|
+
number: [
|
|
147
|
+
'{#1}',
|
|
148
|
+
1
|
|
149
|
+
],
|
|
150
|
+
unit: [
|
|
151
|
+
'{#1}',
|
|
152
|
+
1
|
|
153
|
+
],
|
|
154
|
+
div: '{÷}'
|
|
155
|
+
},
|
|
156
|
+
formatError: (_jax, error)=>{
|
|
157
|
+
throw error;
|
|
158
|
+
}
|
|
159
|
+
}),
|
|
160
|
+
OutputJax: new SVG({
|
|
161
|
+
fontCache: 'none'
|
|
162
|
+
}),
|
|
163
|
+
safeOptions: {
|
|
164
|
+
allow: {
|
|
165
|
+
URLs: 'none',
|
|
166
|
+
classes: 'none',
|
|
167
|
+
cssIDs: 'none',
|
|
168
|
+
styles: 'none'
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
const tex = source.replace(/\p{Cc}/gu, (character)=>character === '\n' || character === '\t' ? character : '');
|
|
173
|
+
const node = document.convert(tex, {
|
|
174
|
+
display: mode === 'display',
|
|
175
|
+
em: 16,
|
|
176
|
+
ex: 8
|
|
177
|
+
});
|
|
178
|
+
const svg = adaptor.tags(node, 'svg')[0];
|
|
179
|
+
if (!svg || adaptor.tags(svg, 'g').some((child)=>adaptor.hasAttribute(child, 'data-mjx-error'))) {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
const [, , width, height] = adaptor.getAttribute(svg, 'viewBox').split(/\s+/).map(Number); // Native SVG does not inherit the surrounding Lynx text color.
|
|
183
|
+
adaptor.setAttribute(svg, 'color', color);
|
|
184
|
+
adaptor.removeAttribute(svg, 'style');
|
|
185
|
+
adaptor.setAttribute(svg, 'width', String(width));
|
|
186
|
+
adaptor.setAttribute(svg, 'height', String(height)); // Return em ratios so Lynx can size formulas with the surrounding text.
|
|
187
|
+
return {
|
|
188
|
+
svg: adaptor.outerHTML(svg).replace(/\sdata-[\w-]+=(?:"[^"]*"|'[^']*')/g, ''),
|
|
189
|
+
width: width / 1000,
|
|
190
|
+
height: height / 1000
|
|
191
|
+
};
|
|
192
|
+
} catch {
|
|
193
|
+
return null;
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
export { renderFormula };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { CjkPlugin } from "@fluxdown/vue-base-plugins/plugins/cjk";
|
|
2
|
+
import { EmojiPlugin } from "@fluxdown/vue-base-plugins/plugins/emoji";
|
|
3
|
+
import { PatchPlugin } from "@fluxdown/vue-base-plugins/plugins/patch";
|
|
4
|
+
import { BlockquotePlugin } from "../../plugins/blockquote/index.js";
|
|
5
|
+
import { BreakLinePlugin } from "../../plugins/break-line/index.js";
|
|
6
|
+
import { CodeShikiPlugin } from "../../plugins/code-shiki/index.js";
|
|
7
|
+
import { EffectChunkPlugin } from "../../plugins/effect-chunk/index.js";
|
|
8
|
+
import { EffectScalePlugin } from "../../plugins/effect-scale/index.js";
|
|
9
|
+
import { EffectShadPlugin } from "../../plugins/effect-shad/index.js";
|
|
10
|
+
import { EffectSuffixPlugin } from "../../plugins/effect-suffix/index.js";
|
|
11
|
+
import { EmphasisPlugin } from "../../plugins/emphasis/index.js";
|
|
12
|
+
import { FallbackPlugin } from "../../plugins/fallback/index.js";
|
|
13
|
+
import { HeadingPlugin } from "../../plugins/heading/index.js";
|
|
14
|
+
import { ImagePlugin } from "../../plugins/image/index.js";
|
|
15
|
+
import { LinkPlugin } from "../../plugins/link/index.js";
|
|
16
|
+
import { ListPlugin } from "../../plugins/list/index.js";
|
|
17
|
+
import { ParagraphPlugin } from "../../plugins/paragraph/index.js";
|
|
18
|
+
import { StrongPlugin } from "../../plugins/strong/index.js";
|
|
19
|
+
import { TablePlugin } from "../../plugins/table/index.js";
|
|
20
|
+
import { TexMathJaxPlugin } from "../../plugins/tex-mathjax/index.js";
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
const PRESET_FULL_PLUGINS = [
|
|
63
|
+
PatchPlugin,
|
|
64
|
+
EffectShadPlugin,
|
|
65
|
+
EffectScalePlugin,
|
|
66
|
+
EffectChunkPlugin,
|
|
67
|
+
EffectSuffixPlugin,
|
|
68
|
+
CodeShikiPlugin,
|
|
69
|
+
CjkPlugin,
|
|
70
|
+
EmojiPlugin,
|
|
71
|
+
EmphasisPlugin,
|
|
72
|
+
ImagePlugin,
|
|
73
|
+
LinkPlugin,
|
|
74
|
+
ListPlugin,
|
|
75
|
+
ParagraphPlugin,
|
|
76
|
+
StrongPlugin,
|
|
77
|
+
TablePlugin,
|
|
78
|
+
TexMathJaxPlugin,
|
|
79
|
+
HeadingPlugin,
|
|
80
|
+
BreakLinePlugin,
|
|
81
|
+
BlockquotePlugin,
|
|
82
|
+
FallbackPlugin
|
|
83
|
+
];
|
|
84
|
+
|
|
85
|
+
export { PRESET_FULL_PLUGINS };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { PatchPlugin } from "@fluxdown/vue-base-plugins/plugins/patch";
|
|
2
|
+
import { BlockquotePlugin } from "../../plugins/blockquote/index.js";
|
|
3
|
+
import { BreakLinePlugin } from "../../plugins/break-line/index.js";
|
|
4
|
+
import { CodePlugin } from "../../plugins/code/index.js";
|
|
5
|
+
import { EffectChunkPlugin } from "../../plugins/effect-chunk/index.js";
|
|
6
|
+
import { EffectScalePlugin } from "../../plugins/effect-scale/index.js";
|
|
7
|
+
import { EffectShadPlugin } from "../../plugins/effect-shad/index.js";
|
|
8
|
+
import { EffectSuffixPlugin } from "../../plugins/effect-suffix/index.js";
|
|
9
|
+
import { EmphasisPlugin } from "../../plugins/emphasis/index.js";
|
|
10
|
+
import { FallbackPlugin } from "../../plugins/fallback/index.js";
|
|
11
|
+
import { HeadingPlugin } from "../../plugins/heading/index.js";
|
|
12
|
+
import { ImagePlugin } from "../../plugins/image/index.js";
|
|
13
|
+
import { LinkPlugin } from "../../plugins/link/index.js";
|
|
14
|
+
import { ListPlugin } from "../../plugins/list/index.js";
|
|
15
|
+
import { ParagraphPlugin } from "../../plugins/paragraph/index.js";
|
|
16
|
+
import { StrongPlugin } from "../../plugins/strong/index.js";
|
|
17
|
+
import { TablePlugin } from "../../plugins/table/index.js";
|
|
18
|
+
import { TexPlugin } from "../../plugins/tex/index.js";
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
const PRESET_LITE_PLUGINS = [
|
|
57
|
+
PatchPlugin,
|
|
58
|
+
EffectShadPlugin,
|
|
59
|
+
EffectScalePlugin,
|
|
60
|
+
EffectChunkPlugin,
|
|
61
|
+
EffectSuffixPlugin,
|
|
62
|
+
CodePlugin,
|
|
63
|
+
EmphasisPlugin,
|
|
64
|
+
ImagePlugin,
|
|
65
|
+
LinkPlugin,
|
|
66
|
+
ListPlugin,
|
|
67
|
+
ParagraphPlugin,
|
|
68
|
+
StrongPlugin,
|
|
69
|
+
TablePlugin,
|
|
70
|
+
TexPlugin,
|
|
71
|
+
HeadingPlugin,
|
|
72
|
+
BreakLinePlugin,
|
|
73
|
+
BlockquotePlugin,
|
|
74
|
+
FallbackPlugin
|
|
75
|
+
];
|
|
76
|
+
|
|
77
|
+
export { PRESET_LITE_PLUGINS };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './plugins.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import '../../plugins/blockquote/index.js';
|
|
2
|
+
import '../../plugins/break-line/index.js';
|
|
3
|
+
import '../../plugins/code/index.js';
|
|
4
|
+
import '../../plugins/code-prism/index.js';
|
|
5
|
+
import '../../plugins/code-shiki/index.js';
|
|
6
|
+
import '../../plugins/effect-chunk/index.js';
|
|
7
|
+
import '../../plugins/effect-scale/index.js';
|
|
8
|
+
import '../../plugins/effect-shad/index.js';
|
|
9
|
+
import '../../plugins/effect-suffix/index.js';
|
|
10
|
+
import '../../plugins/emphasis/index.js';
|
|
11
|
+
import '../../plugins/fallback/index.js';
|
|
12
|
+
import '../../plugins/heading/index.js';
|
|
13
|
+
import '../../plugins/image/index.js';
|
|
14
|
+
import '../../plugins/link/index.js';
|
|
15
|
+
import '../../plugins/list/index.js';
|
|
16
|
+
import '../../plugins/paragraph/index.js';
|
|
17
|
+
import '../../plugins/strong/index.js';
|
|
18
|
+
import '../../plugins/table/index.js';
|
|
19
|
+
import '../../plugins/tex/index.js';
|
|
20
|
+
import '../../plugins/tex-mathjax/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,91 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxdown/vue-lynx-plugins",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Vue Lynx elements and render plugins for Fluxdown.",
|
|
5
|
+
"homepage": "https://fluxdown.dev/",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/hexmora/fluxdown/issues"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/hexmora/fluxdown.git",
|
|
13
|
+
"directory": "packages/vue-lynx-plugins"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/esm",
|
|
17
|
+
"CHANGELOG.md"
|
|
18
|
+
],
|
|
19
|
+
"type": "module",
|
|
20
|
+
"sideEffects": true,
|
|
21
|
+
"exports": {
|
|
22
|
+
"./typings": {
|
|
23
|
+
"types": "./dist/esm/typings/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./base": {
|
|
26
|
+
"types": "./dist/esm/base/index.d.ts",
|
|
27
|
+
"default": "./dist/esm/base/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./plugins/*": {
|
|
30
|
+
"types": "./dist/esm/plugins/*/index.d.ts",
|
|
31
|
+
"default": "./dist/esm/plugins/*/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./*": {
|
|
34
|
+
"types": "./dist/esm/presets/*/index.d.ts",
|
|
35
|
+
"default": "./dist/esm/presets/*/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./jsx-runtime": {
|
|
38
|
+
"types": "./dist/esm/jsx-runtime.d.ts",
|
|
39
|
+
"default": "./dist/esm/jsx-runtime.js"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@fluxdown/core-plugins": "^0.14.0",
|
|
47
|
+
"@fluxdown/hast": "^0.7.2",
|
|
48
|
+
"@fluxdown/types": "^0.11.0",
|
|
49
|
+
"@fluxdown/utils": "^0.7.3",
|
|
50
|
+
"@fluxdown/vue-base-plugins": "^0.2.1",
|
|
51
|
+
"@types/hast": "3.0.4",
|
|
52
|
+
"core-js": "^3.51.0",
|
|
53
|
+
"lodash-es": "^4.18.1",
|
|
54
|
+
"mathjax-full": "^3.2.2",
|
|
55
|
+
"prismjs": "^1.30.0",
|
|
56
|
+
"shiki": "4.4.3"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@fluxdown/core": "^0.13.0",
|
|
60
|
+
"@lynx-js/types": "4.3.0",
|
|
61
|
+
"@rsbuild/core": "2.2.3",
|
|
62
|
+
"@rsbuild/plugin-sass": "2.0.1",
|
|
63
|
+
"@rslib/core": "1.0.0",
|
|
64
|
+
"@types/lodash-es": "^4.17.12",
|
|
65
|
+
"@types/node": "^25.9.3",
|
|
66
|
+
"@types/prismjs": "^1.26.5",
|
|
67
|
+
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
|
68
|
+
"@vue/test-utils": "^2.5.1",
|
|
69
|
+
"expect-type": "1.4.0",
|
|
70
|
+
"jsdom": "29.0.0",
|
|
71
|
+
"oxlint": "^1.69.0",
|
|
72
|
+
"typescript": "7.0.2",
|
|
73
|
+
"vitest": "^5.0.5",
|
|
74
|
+
"vue": "^3.5.44",
|
|
75
|
+
"vue-lynx": "0.5.1"
|
|
76
|
+
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"@lynx-js/types": "^4.3.0",
|
|
79
|
+
"vue": "^3.5.0",
|
|
80
|
+
"vue-lynx": "^0.5.1"
|
|
81
|
+
},
|
|
82
|
+
"engines": {
|
|
83
|
+
"node": ">=22.18.0"
|
|
84
|
+
},
|
|
85
|
+
"scripts": {
|
|
86
|
+
"build": "rslib build",
|
|
87
|
+
"lint": "oxlint .",
|
|
88
|
+
"test": "vitest run",
|
|
89
|
+
"typecheck": "tsc --noEmit"
|
|
90
|
+
}
|
|
6
91
|
}
|