Plugin matrix
Component variants
All three entry points share their props. Choose the preset you need:
All plugins
Composition includes inherited plugin types. A check means the preset includes the plugin by default.
Shiki is not included yet: the App JavaScript bytecode runtime does not support Unicode property escapes in
new RegExp(...).CodePrismPluginprovides highlighting across platforms.
TexPlugin preserves formula source. The three formula renderers require build.tex: true to parse formula syntax.
Formulas are rendered as SVG images. The KaTeX plugins use KaTeX to parse formulas and MathJax for SVG layout, so their glyphs can differ from KaTeX’s default output.
TexMathjaxKatexPluginfalls back to MathJax’s TeX parser for commands KaTeX does not support.
Package
uni-app-plugins means @fluxdown/uni-app-plugins, which
provides Uni App composite plugins, render plugins, and slots.
Import paths
Import from
@fluxdown/uni-app-plugins/plugins/<directory>. Remove thePluginsuffix and convert the remaining name to lowercase with hyphens:CodePrismPluginbecomescode-prism.
Import
PRESET_FULL_PLUGINSfrom@fluxdown/uni-app-plugins/fullandPRESET_LITE_PLUGINSfrom@fluxdown/uni-app-plugins/lite.
Add capabilities through plugins; see Composite plugins for declaration and composition.