@nocobase/plugin-block-markdown 2.0.0-alpha.22
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/LICENSE.txt +172 -0
- package/README.md +1 -0
- package/build.config.ts +15 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.js +10 -0
- package/dist/client/locale.d.ts +10 -0
- package/dist/client/models/MarkdownBlockModel.d.ts +13 -0
- package/dist/client/models/index.d.ts +10 -0
- package/dist/client/plugin.d.ts +15 -0
- package/dist/client/vditor/dist/css/content-theme/ant-design.css +210 -0
- package/dist/client/vditor/dist/css/content-theme/dark.css +123 -0
- package/dist/client/vditor/dist/css/content-theme/light.css +101 -0
- package/dist/client/vditor/dist/css/content-theme/wechat.css +94 -0
- package/dist/client/vditor/dist/images/emoji/b3log.png +0 -0
- package/dist/client/vditor/dist/images/emoji/chainbook.png +0 -0
- package/dist/client/vditor/dist/images/emoji/doge.png +0 -0
- package/dist/client/vditor/dist/images/emoji/hacpai.png +0 -0
- package/dist/client/vditor/dist/images/emoji/huaji.gif +0 -0
- package/dist/client/vditor/dist/images/emoji/latke.png +0 -0
- package/dist/client/vditor/dist/images/emoji/liandi.png +0 -0
- package/dist/client/vditor/dist/images/emoji/lute.png +0 -0
- package/dist/client/vditor/dist/images/emoji/octocat.png +0 -0
- package/dist/client/vditor/dist/images/emoji/pipe.png +0 -0
- package/dist/client/vditor/dist/images/emoji/siyuan.png +0 -0
- package/dist/client/vditor/dist/images/emoji/solo.png +0 -0
- package/dist/client/vditor/dist/images/emoji/sym.png +0 -0
- package/dist/client/vditor/dist/images/emoji/trollface.png +0 -0
- package/dist/client/vditor/dist/images/emoji/vditor.png +0 -0
- package/dist/client/vditor/dist/images/emoji/wide.png +0 -0
- package/dist/client/vditor/dist/images/emoji/wulian.png +0 -0
- package/dist/client/vditor/dist/images/img-loading.svg +1 -0
- package/dist/client/vditor/dist/images/logo.png +0 -0
- package/dist/client/vditor/dist/index.css +1836 -0
- package/dist/client/vditor/dist/index.d.ts +76 -0
- package/dist/client/vditor/dist/index.min.js +10 -0
- package/dist/client/vditor/dist/js/abcjs/abcjs_basic.min.js +12 -0
- package/dist/client/vditor/dist/js/echarts/echarts.min.js +32 -0
- package/dist/client/vditor/dist/js/flowchart.js/flowchart.min.js +17 -0
- package/dist/client/vditor/dist/js/graphviz/full.render.js +99 -0
- package/dist/client/vditor/dist/js/graphviz/viz.js +342 -0
- package/dist/client/vditor/dist/js/highlight.js/highlight.pack.js +1626 -0
- package/dist/client/vditor/dist/js/highlight.js/solidity.min.js +82 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/abap.css +155 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/algol.css +143 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/algol_nu.css +90 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/ant-design.css +469 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/arduino.css +157 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/autumn.css +138 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/borland.css +147 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/bw.css +150 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/colorful.css +158 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/dracula.css +140 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/emacs.css +167 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/friendly.css +183 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/fruity.css +123 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/github.css +174 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/igor.css +124 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/lovelace.css +146 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/manni.css +139 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/monokai.css +132 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/monokailight.css +180 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/murphy.css +144 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/native.css +164 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-dark.css +137 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-light.css +136 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/pastie.css +180 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/perldoc.css +141 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/pygments.css +159 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/rainbow_dash.css +164 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/rrt.css +159 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/solarized-dark.css +146 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/solarized-dark256.css +146 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/solarized-light.css +163 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/swapoff.css +144 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/tango.css +183 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/trac.css +167 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/vim.css +144 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/vs.css +113 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/xcode.css +174 -0
- package/dist/client/vditor/dist/js/highlight.js/yul.min.js +39 -0
- package/dist/client/vditor/dist/js/i18n/en_US.js +94 -0
- package/dist/client/vditor/dist/js/i18n/fr_FR.js +94 -0
- package/dist/client/vditor/dist/js/i18n/ja_JP.js +94 -0
- package/dist/client/vditor/dist/js/i18n/ko_KR.js +94 -0
- package/dist/client/vditor/dist/js/i18n/pt_BR.js +94 -0
- package/dist/client/vditor/dist/js/i18n/ru_RU.js +94 -0
- package/dist/client/vditor/dist/js/i18n/sv_SE.js +94 -0
- package/dist/client/vditor/dist/js/i18n/zh_CN.js +94 -0
- package/dist/client/vditor/dist/js/i18n/zh_TW.js +94 -0
- package/dist/client/vditor/dist/js/icons/ant.js +183 -0
- package/dist/client/vditor/dist/js/icons/material.js +204 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Bold.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Italic.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Regular.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-Italic.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Script-Regular.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/client/vditor/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/client/vditor/dist/js/katex/katex.min.css +1 -0
- package/dist/client/vditor/dist/js/katex/katex.min.js +10 -0
- package/dist/client/vditor/dist/js/katex/mhchem.min.js +10 -0
- package/dist/client/vditor/dist/js/lute/lute.min.js +80 -0
- package/dist/client/vditor/dist/js/markmap/katex.min.css +1 -0
- package/dist/client/vditor/dist/js/markmap/markmap.min.js +8260 -0
- package/dist/client/vditor/dist/js/markmap/prism.css +140 -0
- package/dist/client/vditor/dist/js/mathjax/LICENSE +202 -0
- package/dist/client/vditor/dist/js/mathjax/a11y/assistive-mml.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/a11y/complexity.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/a11y/explorer.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/a11y/semantic-enrich.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/asciimath.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/mml/entities.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/mml.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/action.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/all-packages.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/ams.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/amscd.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/autoload.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/bbox.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/boldsymbol.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/braket.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/bussproofs.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/cancel.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/color.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/colorV2.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/configMacros.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/enclose.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/extpfeil.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/html.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/mhchem.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/newcommand.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/noerrors.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/noundefined.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/physics.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/require.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/tagFormat.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/textmacros.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/unicode.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex/extensions/verb.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex-base.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex-full.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/input/tex.js +10 -0
- package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/de.js +113 -0
- package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/en.js +119 -0
- package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/es.js +113 -0
- package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/fr.js +113 -0
- package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/mathmaps_ie.js +527 -0
- package/dist/client/vditor/dist/js/mathjax/sre/mathmaps/nemeth.js +113 -0
- package/dist/client/vditor/dist/js/mathjax/sre/sre-node.js +20 -0
- package/dist/client/vditor/dist/js/mathjax/sre/sre_browser.js +1642 -0
- package/dist/client/vditor/dist/js/mathjax/tex-svg-full.js +10 -0
- package/dist/client/vditor/dist/js/mermaid/mermaid.min.js +1768 -0
- package/dist/client/vditor/dist/js/plantuml/plantuml-encoder.min.js +10 -0
- package/dist/client/vditor/dist/method.d.ts +50 -0
- package/dist/client/vditor/dist/method.min.js +10 -0
- package/dist/client/vditor/dist/ts/constants.d.ts +45 -0
- package/dist/client/vditor/dist/ts/devtools/index.d.ts +7 -0
- package/dist/client/vditor/dist/ts/export/index.d.ts +5 -0
- package/dist/client/vditor/dist/ts/hint/index.d.ts +14 -0
- package/dist/client/vditor/dist/ts/ir/expandMarker.d.ts +2 -0
- package/dist/client/vditor/dist/ts/ir/highlightToolbarIR.d.ts +2 -0
- package/dist/client/vditor/dist/ts/ir/index.d.ts +13 -0
- package/dist/client/vditor/dist/ts/ir/input.d.ts +2 -0
- package/dist/client/vditor/dist/ts/ir/process.d.ts +9 -0
- package/dist/client/vditor/dist/ts/ir/processKeydown.d.ts +2 -0
- package/dist/client/vditor/dist/ts/markdown/abcRender.d.ts +1 -0
- package/dist/client/vditor/dist/ts/markdown/adapterRender.d.ts +37 -0
- package/dist/client/vditor/dist/ts/markdown/anchorRender.d.ts +1 -0
- package/dist/client/vditor/dist/ts/markdown/chartRender.d.ts +1 -0
- package/dist/client/vditor/dist/ts/markdown/codeRender.d.ts +2 -0
- package/dist/client/vditor/dist/ts/markdown/flowchartRender.d.ts +1 -0
- package/dist/client/vditor/dist/ts/markdown/getHTML.d.ts +2 -0
- package/dist/client/vditor/dist/ts/markdown/getMarkdown.d.ts +2 -0
- package/dist/client/vditor/dist/ts/markdown/graphvizRender.d.ts +1 -0
- package/dist/client/vditor/dist/ts/markdown/highlightRender.d.ts +2 -0
- package/dist/client/vditor/dist/ts/markdown/lazyLoadImageRender.d.ts +6 -0
- package/dist/client/vditor/dist/ts/markdown/markmapRender.d.ts +1 -0
- package/dist/client/vditor/dist/ts/markdown/mathRender.d.ts +10 -0
- package/dist/client/vditor/dist/ts/markdown/mediaRender.d.ts +1 -0
- package/dist/client/vditor/dist/ts/markdown/mermaidRender.d.ts +1 -0
- package/dist/client/vditor/dist/ts/markdown/mindmapRender.d.ts +1 -0
- package/dist/client/vditor/dist/ts/markdown/outlineRender.d.ts +2 -0
- package/dist/client/vditor/dist/ts/markdown/plantumlRender.d.ts +1 -0
- package/dist/client/vditor/dist/ts/markdown/previewRender.d.ts +3 -0
- package/dist/client/vditor/dist/ts/markdown/setLute.d.ts +2 -0
- package/dist/client/vditor/dist/ts/markdown/speechRender.d.ts +7 -0
- package/dist/client/vditor/dist/ts/outline/index.d.ts +7 -0
- package/dist/client/vditor/dist/ts/preview/image.d.ts +2 -0
- package/dist/client/vditor/dist/ts/preview/index.d.ts +10 -0
- package/dist/client/vditor/dist/ts/resize/index.d.ts +6 -0
- package/dist/client/vditor/dist/ts/sv/combineFootnote.d.ts +6 -0
- package/dist/client/vditor/dist/ts/sv/index.d.ts +13 -0
- package/dist/client/vditor/dist/ts/sv/inputEvent.d.ts +2 -0
- package/dist/client/vditor/dist/ts/sv/process.d.ts +12 -0
- package/dist/client/vditor/dist/ts/sv/processKeydown.d.ts +2 -0
- package/dist/client/vditor/dist/ts/tip/index.d.ts +6 -0
- package/dist/client/vditor/dist/ts/toolbar/Both.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/Br.d.ts +4 -0
- package/dist/client/vditor/dist/ts/toolbar/CodeTheme.d.ts +6 -0
- package/dist/client/vditor/dist/ts/toolbar/ContentTheme.d.ts +6 -0
- package/dist/client/vditor/dist/ts/toolbar/Counter.d.ts +6 -0
- package/dist/client/vditor/dist/ts/toolbar/Custom.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/Devtools.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/Divider.d.ts +4 -0
- package/dist/client/vditor/dist/ts/toolbar/EditMode.d.ts +8 -0
- package/dist/client/vditor/dist/ts/toolbar/Emoji.d.ts +7 -0
- package/dist/client/vditor/dist/ts/toolbar/Export.d.ts +6 -0
- package/dist/client/vditor/dist/ts/toolbar/Fullscreen.d.ts +6 -0
- package/dist/client/vditor/dist/ts/toolbar/Headings.d.ts +7 -0
- package/dist/client/vditor/dist/ts/toolbar/Help.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/Indent.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/Info.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/InsertAfter.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/InsertBefore.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/MenuItem.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/Outdent.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/Outline.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/Preview.d.ts +6 -0
- package/dist/client/vditor/dist/ts/toolbar/Record.d.ts +6 -0
- package/dist/client/vditor/dist/ts/toolbar/Redo.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/Undo.d.ts +5 -0
- package/dist/client/vditor/dist/ts/toolbar/Upload.d.ts +6 -0
- package/dist/client/vditor/dist/ts/toolbar/index.d.ts +9 -0
- package/dist/client/vditor/dist/ts/toolbar/setToolbar.d.ts +21 -0
- package/dist/client/vditor/dist/ts/ui/initUI.d.ts +10 -0
- package/dist/client/vditor/dist/ts/ui/setCodeTheme.d.ts +1 -0
- package/dist/client/vditor/dist/ts/ui/setContentTheme.d.ts +1 -0
- package/dist/client/vditor/dist/ts/ui/setPreviewMode.d.ts +2 -0
- package/dist/client/vditor/dist/ts/ui/setTheme.d.ts +2 -0
- package/dist/client/vditor/dist/ts/undo/index.d.ts +19 -0
- package/dist/client/vditor/dist/ts/upload/getElement.d.ts +2 -0
- package/dist/client/vditor/dist/ts/upload/index.d.ts +9 -0
- package/dist/client/vditor/dist/ts/upload/setHeaders.d.ts +2 -0
- package/dist/client/vditor/dist/ts/util/Options.d.ts +8 -0
- package/dist/client/vditor/dist/ts/util/RecordMedia.d.ts +18 -0
- package/dist/client/vditor/dist/ts/util/addScript.d.ts +2 -0
- package/dist/client/vditor/dist/ts/util/addStyle.d.ts +1 -0
- package/dist/client/vditor/dist/ts/util/code160to32.d.ts +1 -0
- package/dist/client/vditor/dist/ts/util/compatibility.d.ts +7 -0
- package/dist/client/vditor/dist/ts/util/editorCommonEvent.d.ts +10 -0
- package/dist/client/vditor/dist/ts/util/fixBrowserBehavior.d.ts +40 -0
- package/dist/client/vditor/dist/ts/util/function.d.ts +2 -0
- package/dist/client/vditor/dist/ts/util/getSelectText.d.ts +1 -0
- package/dist/client/vditor/dist/ts/util/hasClosest.d.ts +9 -0
- package/dist/client/vditor/dist/ts/util/hasClosestByHeadings.d.ts +2 -0
- package/dist/client/vditor/dist/ts/util/highlightToolbar.d.ts +2 -0
- package/dist/client/vditor/dist/ts/util/hotKey.d.ts +1 -0
- package/dist/client/vditor/dist/ts/util/log.d.ts +1 -0
- package/dist/client/vditor/dist/ts/util/merge.d.ts +1 -0
- package/dist/client/vditor/dist/ts/util/processCode.d.ts +3 -0
- package/dist/client/vditor/dist/ts/util/selection.d.ts +15 -0
- package/dist/client/vditor/dist/ts/util/toc.d.ts +6 -0
- package/dist/client/vditor/dist/ts/wysiwyg/afterRenderEvent.d.ts +6 -0
- package/dist/client/vditor/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts +5 -0
- package/dist/client/vditor/dist/ts/wysiwyg/index.d.ts +22 -0
- package/dist/client/vditor/dist/ts/wysiwyg/inlineTag.d.ts +11 -0
- package/dist/client/vditor/dist/ts/wysiwyg/input.d.ts +2 -0
- package/dist/client/vditor/dist/ts/wysiwyg/processKeydown.d.ts +3 -0
- package/dist/client/vditor/dist/ts/wysiwyg/renderDomByMd.d.ts +6 -0
- package/dist/client/vditor/dist/ts/wysiwyg/setHeading.d.ts +3 -0
- package/dist/client/vditor/dist/ts/wysiwyg/showCode.d.ts +2 -0
- package/dist/client/vditor/dist/ts/wysiwyg/toolbarEvent.d.ts +2 -0
- package/dist/client/vditor/dist/types/index.d.ts +866 -0
- package/dist/externalVersion.js +16 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +48 -0
- package/dist/locale/en-US.json +1 -0
- package/dist/locale/zh-CN.json +1 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +42 -0
- package/dist/server/plugin.d.ts +19 -0
- package/dist/server/plugin.js +54 -0
- package/package.json +21 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
hljs.registerLanguage("solidity",(()=>{"use strict";function e(){try{return!0
|
|
11
|
+
}catch(e){return!1}}
|
|
12
|
+
var a=/-?(\b0[xX]([a-fA-F0-9]_?)*[a-fA-F0-9]|(\b[1-9](_?\d)*(\.((\d_?)*\d)?)?|\.\d(_?\d)*)([eE][-+]?\d(_?\d)*)?|\b0)(?!\w|\$)/
|
|
13
|
+
;e()&&(a=a.source.replace(/\\b/g,"(?<!\\$)\\b"));var s={className:"number",
|
|
14
|
+
begin:a,relevance:0},n={
|
|
15
|
+
keyword:"assembly let function if switch case default for leave break continue u256 jump jumpi stop return revert selfdestruct invalid",
|
|
16
|
+
built_in:"add sub mul div sdiv mod smod exp not lt gt slt sgt eq iszero and or xor byte shl shr sar addmod mulmod signextend keccak256 pc pop dup1 dup2 dup3 dup4 dup5 dup6 dup7 dup8 dup9 dup10 dup11 dup12 dup13 dup14 dup15 dup16 swap1 swap2 swap3 swap4 swap5 swap6 swap7 swap8 swap9 swap10 swap11 swap12 swap13 swap14 swap15 swap16 mload mstore mstore8 sload sstore msize gas address balance selfbalance caller callvalue calldataload calldatasize calldatacopy codesize codecopy extcodesize extcodecopy returndatasize returndatacopy extcodehash create create2 call callcode delegatecall staticcall log0 log1 log2 log3 log4 chainid origin gasprice basefee blockhash coinbase timestamp number difficulty gaslimit",
|
|
17
|
+
literal:"true false"},i={className:"string",
|
|
18
|
+
begin:/\bhex'(([0-9a-fA-F]{2}_?)*[0-9a-fA-F]{2})?'/},t={className:"string",
|
|
19
|
+
begin:/\bhex"(([0-9a-fA-F]{2}_?)*[0-9a-fA-F]{2})?"/};function r(e){
|
|
20
|
+
return e.inherit(e.APOS_STRING_MODE,{begin:/(\bunicode)?'/})}function l(e){
|
|
21
|
+
return e.inherit(e.QUOTE_STRING_MODE,{begin:/(\bunicode)?"/})}var o={
|
|
22
|
+
SOL_ASSEMBLY_KEYWORDS:n,baseAssembly:e=>{
|
|
23
|
+
var a=r(e),o=l(e),c=/[A-Za-z_$][A-Za-z_$0-9.]*/,d=e.inherit(e.TITLE_MODE,{
|
|
24
|
+
begin:/[A-Za-z$_][0-9A-Za-z$_]*/,lexemes:c,keywords:n}),u={className:"params",
|
|
25
|
+
begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,lexemes:c,keywords:n,
|
|
26
|
+
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,o,s]},_={
|
|
27
|
+
className:"operator",begin:/:=|->/};return{keywords:n,lexemes:c,
|
|
28
|
+
contains:[a,o,i,t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,_,{
|
|
29
|
+
className:"function",lexemes:c,beginKeywords:"function",end:"{",excludeEnd:!0,
|
|
30
|
+
contains:[d,u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_]}]}},
|
|
31
|
+
solAposStringMode:r,solQuoteStringMode:l,HEX_APOS_STRING_MODE:i,
|
|
32
|
+
HEX_QUOTE_STRING_MODE:t,SOL_NUMBER:s,isNegativeLookbehindAvailable:e}
|
|
33
|
+
;const{baseAssembly:c,solAposStringMode:d,solQuoteStringMode:u,HEX_APOS_STRING_MODE:_,HEX_QUOTE_STRING_MODE:m,SOL_NUMBER:b,isNegativeLookbehindAvailable:g}=o
|
|
34
|
+
;return e=>{for(var a=d(e),s=u(e),n=[],i=0;i<32;i++)n[i]=i+1
|
|
35
|
+
;var t=n.map((e=>8*e)),r=[];for(i=0;i<=80;i++)r[i]=i
|
|
36
|
+
;var l=n.map((e=>"bytes"+e)).join(" ")+" ",o=t.map((e=>"uint"+e)).join(" ")+" ",E=t.map((e=>"int"+e)).join(" ")+" ",M=[].concat.apply([],t.map((e=>r.map((a=>e+"x"+a))))),p={
|
|
37
|
+
keyword:"var bool string int uint "+E+o+"byte bytes "+l+"fixed ufixed "+M.map((e=>"fixed"+e)).join(" ")+" "+M.map((e=>"ufixed"+e)).join(" ")+" enum struct mapping address new delete if else for while continue break return throw emit try catch revert unchecked _ function modifier event constructor fallback receive error virtual override constant immutable anonymous indexed storage memory calldata external public internal payable pure view private returns import from as using global pragma contract interface library is abstract type assembly",
|
|
38
|
+
literal:"true false wei gwei szabo finney ether seconds minutes hours days weeks years",
|
|
39
|
+
built_in:"self this super selfdestruct suicide now msg block tx abi blockhash gasleft assert require Error Panic sha3 sha256 keccak256 ripemd160 ecrecover addmod mulmod log0 log1 log2 log3 log4"
|
|
40
|
+
},O={className:"operator",begin:/[+\-!~*\/%<>&^|=]/
|
|
41
|
+
},C=/[A-Za-z_$][A-Za-z_$0-9]*/,N={className:"params",begin:/\(/,end:/\)/,
|
|
42
|
+
excludeBegin:!0,excludeEnd:!0,lexemes:C,keywords:p,
|
|
43
|
+
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,s,b,"self"]},f={
|
|
44
|
+
begin:/\.\s*/,end:/[^A-Za-z0-9$_\.]/,excludeBegin:!0,excludeEnd:!0,keywords:{
|
|
45
|
+
built_in:"gas value selector address length push pop send transfer call callcode delegatecall staticcall balance code codehash wrap unwrap name creationCode runtimeCode interfaceId min max"
|
|
46
|
+
},relevance:2},y=e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/,
|
|
47
|
+
lexemes:C,keywords:p}),w={className:"built_in",
|
|
48
|
+
begin:(g()?"(?<!\\$)\\b":"\\b")+"(gas|value|salt)(?=:)"};function x(e,a){return{
|
|
49
|
+
begin:(g()?"(?<!\\$)\\b":"\\b")+e+"\\.\\s*",end:/[^A-Za-z0-9$_\.]/,
|
|
50
|
+
excludeBegin:!1,excludeEnd:!0,lexemes:C,keywords:{built_in:e+" "+a},
|
|
51
|
+
contains:[f],relevance:10}}var h=c(e),v=e.inherit(h,{
|
|
52
|
+
contains:h.contains.concat([{begin:/\./,end:/[^A-Za-z0-9$.]/,excludeBegin:!0,
|
|
53
|
+
excludeEnd:!0,keywords:{built_in:"slot offset length address selector"},
|
|
54
|
+
relevance:2},{begin:/_/,end:/[^A-Za-z0-9$.]/,excludeBegin:!0,excludeEnd:!0,
|
|
55
|
+
keywords:{built_in:"slot offset"},relevance:2}])});return{aliases:["sol"],
|
|
56
|
+
keywords:p,lexemes:C,
|
|
57
|
+
contains:[a,s,_,m,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,w,O,{
|
|
58
|
+
className:"function",lexemes:C,
|
|
59
|
+
beginKeywords:"function modifier event constructor fallback receive error",
|
|
60
|
+
end:/[{;]/,excludeEnd:!0,
|
|
61
|
+
contains:[y,N,w,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/%/
|
|
62
|
+
},x("msg","gas value data sender sig"),x("block","blockhash coinbase difficulty gaslimit basefee number timestamp chainid"),x("tx","gasprice origin"),x("abi","decode encode encodePacked encodeWithSelector encodeWithSignature encodeCall"),x("bytes","concat"),x("string","concat"),f,{
|
|
63
|
+
className:"class",lexemes:C,beginKeywords:"contract interface library",end:"{",
|
|
64
|
+
excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"is",lexemes:C
|
|
65
|
+
},y,N,w,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{lexemes:C,
|
|
66
|
+
beginKeywords:"struct enum",end:"{",excludeEnd:!0,illegal:/[:"\[\]]/,
|
|
67
|
+
contains:[y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{
|
|
68
|
+
beginKeywords:"import",end:";",lexemes:C,keywords:"import from as",
|
|
69
|
+
contains:[y,a,s,_,m,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,O]},{
|
|
70
|
+
beginKeywords:"using",end:";",lexemes:C,keywords:"using for global",
|
|
71
|
+
contains:[y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,O]},{className:"meta",
|
|
72
|
+
beginKeywords:"pragma",end:";",lexemes:C,keywords:{
|
|
73
|
+
keyword:"pragma solidity experimental abicoder",
|
|
74
|
+
built_in:"ABIEncoderV2 SMTChecker v1 v2"},
|
|
75
|
+
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(a,{
|
|
76
|
+
className:"meta-string"}),e.inherit(s,{className:"meta-string"})]},{
|
|
77
|
+
beginKeywords:"assembly",end:/\b\B/,
|
|
78
|
+
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(a,{
|
|
79
|
+
className:"meta-string"}),e.inherit(s,{className:"meta-string"}),e.inherit(v,{
|
|
80
|
+
begin:"{",end:"}",endsParent:!0,contains:v.contains.concat([e.inherit(v,{
|
|
81
|
+
begin:"{",end:"}",contains:v.contains.concat(["self"])})])})]}],illegal:/#/}}
|
|
82
|
+
})());
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* Background */ .highlight-bg { background-color: #ffffff }
|
|
2
|
+
/* PreWrapper */ .highlight-chroma { background-color: #ffffff; }
|
|
3
|
+
/* Error */ .highlight-chroma .highlight-err { color: #ff0000 }
|
|
4
|
+
/* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
|
5
|
+
/* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
|
6
|
+
/* LineHighlight */ .highlight-chroma .highlight-hl { background-color: #e5e5e5 }
|
|
7
|
+
/* LineNumbersTable */ .highlight-chroma .highlight-lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
8
|
+
/* LineNumbers */ .highlight-chroma .highlight-ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
9
|
+
/* Line */ .highlight-chroma .highlight-line { display: flex; }
|
|
10
|
+
/* Keyword */ .highlight-chroma .highlight-k { color: #0000ff }
|
|
11
|
+
/* KeywordConstant */ .highlight-chroma .highlight-kc { color: #0000ff }
|
|
12
|
+
/* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #0000ff }
|
|
13
|
+
/* KeywordNamespace */ .highlight-chroma .highlight-kn { color: #0000ff }
|
|
14
|
+
/* KeywordPseudo */ .highlight-chroma .highlight-kp { color: #0000ff }
|
|
15
|
+
/* KeywordReserved */ .highlight-chroma .highlight-kr { color: #0000ff }
|
|
16
|
+
/* KeywordType */ .highlight-chroma .highlight-kt { color: #0000ff }
|
|
17
|
+
/* Name */ .highlight-chroma .highlight-n { color: #000000 }
|
|
18
|
+
/* NameAttribute */ .highlight-chroma .highlight-na { color: #000000 }
|
|
19
|
+
/* NameBuiltin */ .highlight-chroma .highlight-nb { color: #000000 }
|
|
20
|
+
/* NameBuiltinPseudo */ .highlight-chroma .highlight-bp { color: #000000 }
|
|
21
|
+
/* NameClass */ .highlight-chroma .highlight-nc { color: #000000 }
|
|
22
|
+
/* NameConstant */ .highlight-chroma .highlight-no { color: #000000 }
|
|
23
|
+
/* NameDecorator */ .highlight-chroma .highlight-nd { color: #000000 }
|
|
24
|
+
/* NameEntity */ .highlight-chroma .highlight-ni { color: #000000 }
|
|
25
|
+
/* NameException */ .highlight-chroma .highlight-ne { color: #000000 }
|
|
26
|
+
/* NameFunction */ .highlight-chroma .highlight-nf { color: #000000 }
|
|
27
|
+
/* NameFunctionMagic */ .highlight-chroma .highlight-fm { color: #000000 }
|
|
28
|
+
/* NameLabel */ .highlight-chroma .highlight-nl { color: #000000 }
|
|
29
|
+
/* NameNamespace */ .highlight-chroma .highlight-nn { color: #000000 }
|
|
30
|
+
/* NameOther */ .highlight-chroma .highlight-nx { color: #000000 }
|
|
31
|
+
/* NameProperty */ .highlight-chroma .highlight-py { color: #000000 }
|
|
32
|
+
/* NameTag */ .highlight-chroma .highlight-nt { color: #000000 }
|
|
33
|
+
/* NameVariable */ .highlight-chroma .highlight-nv { color: #000000 }
|
|
34
|
+
/* NameVariableClass */ .highlight-chroma .highlight-vc { color: #000000 }
|
|
35
|
+
/* NameVariableGlobal */ .highlight-chroma .highlight-vg { color: #000000 }
|
|
36
|
+
/* NameVariableInstance */ .highlight-chroma .highlight-vi { color: #000000 }
|
|
37
|
+
/* NameVariableMagic */ .highlight-chroma .highlight-vm { color: #000000 }
|
|
38
|
+
/* LiteralString */ .highlight-chroma .highlight-s { color: #55aa22 }
|
|
39
|
+
/* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #55aa22 }
|
|
40
|
+
/* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #55aa22 }
|
|
41
|
+
/* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #55aa22 }
|
|
42
|
+
/* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #55aa22 }
|
|
43
|
+
/* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #55aa22 }
|
|
44
|
+
/* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #55aa22 }
|
|
45
|
+
/* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #55aa22 }
|
|
46
|
+
/* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #55aa22 }
|
|
47
|
+
/* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #55aa22 }
|
|
48
|
+
/* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #55aa22 }
|
|
49
|
+
/* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #55aa22 }
|
|
50
|
+
/* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #55aa22 }
|
|
51
|
+
/* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #55aa22 }
|
|
52
|
+
/* LiteralNumber */ .highlight-chroma .highlight-m { color: #33aaff }
|
|
53
|
+
/* LiteralNumberBin */ .highlight-chroma .highlight-mb { color: #33aaff }
|
|
54
|
+
/* LiteralNumberFloat */ .highlight-chroma .highlight-mf { color: #33aaff }
|
|
55
|
+
/* LiteralNumberHex */ .highlight-chroma .highlight-mh { color: #33aaff }
|
|
56
|
+
/* LiteralNumberInteger */ .highlight-chroma .highlight-mi { color: #33aaff }
|
|
57
|
+
/* LiteralNumberIntegerLong */ .highlight-chroma .highlight-il { color: #33aaff }
|
|
58
|
+
/* LiteralNumberOct */ .highlight-chroma .highlight-mo { color: #33aaff }
|
|
59
|
+
/* OperatorWord */ .highlight-chroma .highlight-ow { color: #0000ff }
|
|
60
|
+
/* Comment */ .highlight-chroma .highlight-c { color: #888888; font-style: italic }
|
|
61
|
+
/* CommentHashbang */ .highlight-chroma .highlight-ch { color: #888888; font-style: italic }
|
|
62
|
+
/* CommentMultiline */ .highlight-chroma .highlight-cm { color: #888888; font-style: italic }
|
|
63
|
+
/* CommentSingle */ .highlight-chroma .highlight-c1 { color: #888888; font-style: italic }
|
|
64
|
+
/* CommentSpecial */ .highlight-chroma .highlight-cs { color: #888888; font-style: italic }
|
|
65
|
+
/* CommentPreproc */ .highlight-chroma .highlight-cp { color: #888888; font-style: italic }
|
|
66
|
+
/* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #888888; font-style: italic }
|
|
67
|
+
/*
|
|
68
|
+
|
|
69
|
+
Google Code style (c) Aahan Krish <geekpanth3r@gmail.com>
|
|
70
|
+
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
.hljs {
|
|
74
|
+
display: block;
|
|
75
|
+
overflow-x: auto;
|
|
76
|
+
padding: 0.5em;
|
|
77
|
+
background: white;
|
|
78
|
+
color: black;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.hljs-comment,
|
|
82
|
+
.hljs-quote {
|
|
83
|
+
color: #800;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.hljs-keyword,
|
|
87
|
+
.hljs-selector-tag,
|
|
88
|
+
.hljs-section,
|
|
89
|
+
.hljs-title,
|
|
90
|
+
.hljs-name {
|
|
91
|
+
color: #008;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.hljs-variable,
|
|
95
|
+
.hljs-template-variable {
|
|
96
|
+
color: #660;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.hljs-string,
|
|
100
|
+
.hljs-selector-attr,
|
|
101
|
+
.hljs-selector-pseudo,
|
|
102
|
+
.hljs-regexp {
|
|
103
|
+
color: #080;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.hljs-literal,
|
|
107
|
+
.hljs-symbol,
|
|
108
|
+
.hljs-bullet,
|
|
109
|
+
.hljs-meta,
|
|
110
|
+
.hljs-number,
|
|
111
|
+
.hljs-link {
|
|
112
|
+
color: #066;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.hljs-title,
|
|
116
|
+
.hljs-doctag,
|
|
117
|
+
.hljs-type,
|
|
118
|
+
.hljs-attr,
|
|
119
|
+
.hljs-built_in,
|
|
120
|
+
.hljs-builtin-name,
|
|
121
|
+
.hljs-params {
|
|
122
|
+
color: #606;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.hljs-attribute,
|
|
126
|
+
.hljs-subst {
|
|
127
|
+
color: #000;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.hljs-formula {
|
|
131
|
+
background-color: #eee;
|
|
132
|
+
font-style: italic;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.hljs-selector-id,
|
|
136
|
+
.hljs-selector-class {
|
|
137
|
+
color: #9B703F
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.hljs-addition {
|
|
141
|
+
background-color: #baeeba;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.hljs-deletion {
|
|
145
|
+
background-color: #ffc8bd;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.hljs-doctag,
|
|
149
|
+
.hljs-strong {
|
|
150
|
+
font-weight: bold;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.hljs-emphasis {
|
|
154
|
+
font-style: italic;
|
|
155
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* Background */ .highlight-bg { background-color: #ffffff }
|
|
2
|
+
/* PreWrapper */ .highlight-chroma { background-color: #ffffff; }
|
|
3
|
+
/* Error */ .highlight-chroma .highlight-err { }
|
|
4
|
+
/* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
|
5
|
+
/* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
|
6
|
+
/* LineHighlight */ .highlight-chroma .highlight-hl { background-color: #e5e5e5 }
|
|
7
|
+
/* LineNumbersTable */ .highlight-chroma .highlight-lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
8
|
+
/* LineNumbers */ .highlight-chroma .highlight-ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
9
|
+
/* Line */ .highlight-chroma .highlight-line { display: flex; }
|
|
10
|
+
/* Keyword */ .highlight-chroma .highlight-k { font-weight: bold; text-decoration: underline }
|
|
11
|
+
/* KeywordConstant */ .highlight-chroma .highlight-kc { font-weight: bold; text-decoration: underline }
|
|
12
|
+
/* KeywordDeclaration */ .highlight-chroma .highlight-kd { font-weight: bold; font-style: italic; text-decoration: underline }
|
|
13
|
+
/* KeywordNamespace */ .highlight-chroma .highlight-kn { font-weight: bold; text-decoration: underline }
|
|
14
|
+
/* KeywordPseudo */ .highlight-chroma .highlight-kp { font-weight: bold; text-decoration: underline }
|
|
15
|
+
/* KeywordReserved */ .highlight-chroma .highlight-kr { font-weight: bold; text-decoration: underline }
|
|
16
|
+
/* KeywordType */ .highlight-chroma .highlight-kt { font-weight: bold; text-decoration: underline }
|
|
17
|
+
/* NameBuiltin */ .highlight-chroma .highlight-nb { font-weight: bold; font-style: italic }
|
|
18
|
+
/* NameBuiltinPseudo */ .highlight-chroma .highlight-bp { font-weight: bold; font-style: italic }
|
|
19
|
+
/* NameClass */ .highlight-chroma .highlight-nc { color: #666666; font-weight: bold; font-style: italic }
|
|
20
|
+
/* NameConstant */ .highlight-chroma .highlight-no { color: #666666; font-weight: bold; font-style: italic }
|
|
21
|
+
/* NameFunction */ .highlight-chroma .highlight-nf { color: #666666; font-weight: bold; font-style: italic }
|
|
22
|
+
/* NameNamespace */ .highlight-chroma .highlight-nn { color: #666666; font-weight: bold; font-style: italic }
|
|
23
|
+
/* NameVariable */ .highlight-chroma .highlight-nv { color: #666666; font-weight: bold; font-style: italic }
|
|
24
|
+
/* LiteralString */ .highlight-chroma .highlight-s { color: #666666; font-style: italic }
|
|
25
|
+
/* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #666666; font-style: italic }
|
|
26
|
+
/* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #666666; font-style: italic }
|
|
27
|
+
/* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #666666; font-style: italic }
|
|
28
|
+
/* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #666666; font-style: italic }
|
|
29
|
+
/* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #666666; font-style: italic }
|
|
30
|
+
/* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #666666; font-style: italic }
|
|
31
|
+
/* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #666666; font-style: italic }
|
|
32
|
+
/* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #666666; font-style: italic }
|
|
33
|
+
/* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #666666; font-style: italic }
|
|
34
|
+
/* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #666666; font-style: italic }
|
|
35
|
+
/* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #666666; font-style: italic }
|
|
36
|
+
/* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #666666; font-style: italic }
|
|
37
|
+
/* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #666666; font-style: italic }
|
|
38
|
+
/* OperatorWord */ .highlight-chroma .highlight-ow { font-weight: bold }
|
|
39
|
+
/* Comment */ .highlight-chroma .highlight-c { color: #888888; font-style: italic }
|
|
40
|
+
/* CommentHashbang */ .highlight-chroma .highlight-ch { color: #888888; font-style: italic }
|
|
41
|
+
/* CommentMultiline */ .highlight-chroma .highlight-cm { color: #888888; font-style: italic }
|
|
42
|
+
/* CommentSingle */ .highlight-chroma .highlight-c1 { color: #888888; font-style: italic }
|
|
43
|
+
/* CommentSpecial */ .highlight-chroma .highlight-cs { color: #888888; font-weight: bold }
|
|
44
|
+
/* CommentPreproc */ .highlight-chroma .highlight-cp { color: #888888; font-weight: bold }
|
|
45
|
+
/* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #888888; font-weight: bold }
|
|
46
|
+
/*
|
|
47
|
+
Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine (@thingsinjars)
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
.hljs {
|
|
51
|
+
display: block;
|
|
52
|
+
overflow-x: auto;
|
|
53
|
+
padding: 0.5em;
|
|
54
|
+
color: #000;
|
|
55
|
+
background: #f8f8ff;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.hljs-comment,
|
|
59
|
+
.hljs-quote {
|
|
60
|
+
color: #408080;
|
|
61
|
+
font-style: italic;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.hljs-keyword,
|
|
65
|
+
.hljs-selector-tag,
|
|
66
|
+
.hljs-literal,
|
|
67
|
+
.hljs-subst {
|
|
68
|
+
color: #954121;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.hljs-number {
|
|
72
|
+
color: #40a070;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.hljs-string,
|
|
76
|
+
.hljs-doctag {
|
|
77
|
+
color: #219161;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.hljs-selector-id,
|
|
81
|
+
.hljs-selector-class,
|
|
82
|
+
.hljs-section,
|
|
83
|
+
.hljs-type {
|
|
84
|
+
color: #19469d;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.hljs-params {
|
|
88
|
+
color: #00f;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.hljs-title {
|
|
92
|
+
color: #458;
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.hljs-tag,
|
|
97
|
+
.hljs-name,
|
|
98
|
+
.hljs-attribute {
|
|
99
|
+
color: #000080;
|
|
100
|
+
font-weight: normal;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.hljs-variable,
|
|
104
|
+
.hljs-template-variable {
|
|
105
|
+
color: #008080;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.hljs-regexp,
|
|
109
|
+
.hljs-link {
|
|
110
|
+
color: #b68;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.hljs-symbol,
|
|
114
|
+
.hljs-bullet {
|
|
115
|
+
color: #990073;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.hljs-built_in,
|
|
119
|
+
.hljs-builtin-name {
|
|
120
|
+
color: #0086b3;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.hljs-meta {
|
|
124
|
+
color: #999;
|
|
125
|
+
font-weight: bold;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.hljs-deletion {
|
|
129
|
+
background: #fdd;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.hljs-addition {
|
|
133
|
+
background: #dfd;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.hljs-emphasis {
|
|
137
|
+
font-style: italic;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.hljs-strong {
|
|
141
|
+
font-weight: bold;
|
|
142
|
+
}
|
|
143
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* Background */ .highlight-bg { background-color: #ffffff }
|
|
2
|
+
/* PreWrapper */ .highlight-chroma { background-color: #ffffff; }
|
|
3
|
+
/* Error */ .highlight-chroma .highlight-err { }
|
|
4
|
+
/* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
|
5
|
+
/* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
|
6
|
+
/* LineHighlight */ .highlight-chroma .highlight-hl { background-color: #e5e5e5 }
|
|
7
|
+
/* LineNumbersTable */ .highlight-chroma .highlight-lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
8
|
+
/* LineNumbers */ .highlight-chroma .highlight-ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
|
9
|
+
/* Line */ .highlight-chroma .highlight-line { display: flex; }
|
|
10
|
+
/* Keyword */ .highlight-chroma .highlight-k { font-weight: bold }
|
|
11
|
+
/* KeywordConstant */ .highlight-chroma .highlight-kc { font-weight: bold }
|
|
12
|
+
/* KeywordDeclaration */ .highlight-chroma .highlight-kd { font-weight: bold; font-style: italic }
|
|
13
|
+
/* KeywordNamespace */ .highlight-chroma .highlight-kn { font-weight: bold }
|
|
14
|
+
/* KeywordPseudo */ .highlight-chroma .highlight-kp { font-weight: bold }
|
|
15
|
+
/* KeywordReserved */ .highlight-chroma .highlight-kr { font-weight: bold }
|
|
16
|
+
/* KeywordType */ .highlight-chroma .highlight-kt { font-weight: bold }
|
|
17
|
+
/* NameBuiltin */ .highlight-chroma .highlight-nb { font-weight: bold; font-style: italic }
|
|
18
|
+
/* NameBuiltinPseudo */ .highlight-chroma .highlight-bp { font-weight: bold; font-style: italic }
|
|
19
|
+
/* NameClass */ .highlight-chroma .highlight-nc { color: #666666; font-weight: bold; font-style: italic }
|
|
20
|
+
/* NameConstant */ .highlight-chroma .highlight-no { color: #666666; font-weight: bold; font-style: italic }
|
|
21
|
+
/* NameFunction */ .highlight-chroma .highlight-nf { color: #666666; font-weight: bold; font-style: italic }
|
|
22
|
+
/* NameNamespace */ .highlight-chroma .highlight-nn { color: #666666; font-weight: bold; font-style: italic }
|
|
23
|
+
/* NameVariable */ .highlight-chroma .highlight-nv { color: #666666; font-weight: bold; font-style: italic }
|
|
24
|
+
/* LiteralString */ .highlight-chroma .highlight-s { color: #666666; font-style: italic }
|
|
25
|
+
/* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #666666; font-style: italic }
|
|
26
|
+
/* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #666666; font-style: italic }
|
|
27
|
+
/* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #666666; font-style: italic }
|
|
28
|
+
/* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #666666; font-style: italic }
|
|
29
|
+
/* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #666666; font-style: italic }
|
|
30
|
+
/* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #666666; font-style: italic }
|
|
31
|
+
/* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #666666; font-style: italic }
|
|
32
|
+
/* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #666666; font-style: italic }
|
|
33
|
+
/* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #666666; font-style: italic }
|
|
34
|
+
/* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #666666; font-style: italic }
|
|
35
|
+
/* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #666666; font-style: italic }
|
|
36
|
+
/* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #666666; font-style: italic }
|
|
37
|
+
/* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #666666; font-style: italic }
|
|
38
|
+
/* OperatorWord */ .highlight-chroma .highlight-ow { font-weight: bold }
|
|
39
|
+
/* Comment */ .highlight-chroma .highlight-c { color: #888888; font-style: italic }
|
|
40
|
+
/* CommentHashbang */ .highlight-chroma .highlight-ch { color: #888888; font-style: italic }
|
|
41
|
+
/* CommentMultiline */ .highlight-chroma .highlight-cm { color: #888888; font-style: italic }
|
|
42
|
+
/* CommentSingle */ .highlight-chroma .highlight-c1 { color: #888888; font-style: italic }
|
|
43
|
+
/* CommentSpecial */ .highlight-chroma .highlight-cs { color: #888888; font-weight: bold }
|
|
44
|
+
/* CommentPreproc */ .highlight-chroma .highlight-cp { color: #888888; font-weight: bold }
|
|
45
|
+
/* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #888888; font-weight: bold }
|
|
46
|
+
/*
|
|
47
|
+
|
|
48
|
+
Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
|
|
49
|
+
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
.hljs {
|
|
53
|
+
display: block;
|
|
54
|
+
overflow-x: auto;
|
|
55
|
+
padding: 0.5em;
|
|
56
|
+
background: white;
|
|
57
|
+
color: black;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.hljs-string,
|
|
61
|
+
.hljs-variable,
|
|
62
|
+
.hljs-template-variable,
|
|
63
|
+
.hljs-symbol,
|
|
64
|
+
.hljs-bullet,
|
|
65
|
+
.hljs-section,
|
|
66
|
+
.hljs-addition,
|
|
67
|
+
.hljs-attribute,
|
|
68
|
+
.hljs-link {
|
|
69
|
+
color: #888;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.hljs-comment,
|
|
73
|
+
.hljs-quote,
|
|
74
|
+
.hljs-meta,
|
|
75
|
+
.hljs-deletion {
|
|
76
|
+
color: #ccc;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.hljs-keyword,
|
|
80
|
+
.hljs-selector-tag,
|
|
81
|
+
.hljs-section,
|
|
82
|
+
.hljs-name,
|
|
83
|
+
.hljs-type,
|
|
84
|
+
.hljs-strong {
|
|
85
|
+
font-weight: bold;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.hljs-emphasis {
|
|
89
|
+
font-style: italic;
|
|
90
|
+
}
|