Plugin matrix
Component variants
All three entries share the same component API. Choose the default capabilities you need:
All plugins
Composition includes inherited plugin types. A check means the component includes that plugin by default; an empty cell means it can be added manually.
Package
taro-plugins refers to @fluxdown/taro-plugins, which
provides Taro slots on top of the shared render plugins.
react-base-plugins refers to
@fluxdown/react-base-plugins, which provides shared rendering and syntax
plugins.
Import rules
Import from
<package>/plugins/<plugin-directory>. Remove thePluginsuffix and convert the name to lowercase kebab case:CodePrismPluginbecomescode-prism, andTexMathjaxKatexPluginbecomestex-mathjax-katex. Use the package shown in the table.
Import
PRESET_FULL_PLUGINSfrom@fluxdown/taro-plugins/fullandPRESET_LITE_PLUGINSfrom@fluxdown/taro-plugins/lite.
Pass plugins through the component's plugins prop. See aggregate plugins for declaration, composition and configuration.