Plugin matrix
Component variants
Full highlights Bash, CSS, HTML, JavaScript, JSON, Python and TypeScript. Unrecognized languages remain plain text. Lite displays code as source text.
Both presets provide a Tex slot. build.tex defaults to false; enabling it displays formula source. Add TexSvgPlugin and integrate SVG XElement in the host to typeset math.
All plugins
Composition includes inherited plugin types. A check means the preset directly includes that plugin. Full's CodeShikiPlugin inherits the base features of CodePlugin.
Package and imports
lynx-plugins is @fluxdown/lynx-plugins, which provides
Lynx composite plugins, render plugins and slots.
Import from
@fluxdown/lynx-plugins/plugins/<plugin-directory>. Remove thePluginsuffix from the export name and convert it to lowercase hyphenated words:CodeShikiPluginbecomescode-shiki.
Import
PRESET_FULL_PLUGINSfrom@fluxdown/lynx-plugins/full, orPRESET_LITE_PLUGINSfrom@fluxdown/lynx-plugins/lite, to pass a preset directly toFluxdownRaw.
The component's plugins prop can extend any preset. See composite plugins for configuration and composition.