• English
  • Plugin matrix

    Component variants

    The three entry points share the same component API with different default capabilities:

    ComponentImportPurpose
    Fluxdown@fluxdown/svelte or @fluxdown/svelte/fullFull Markdown presentation with highlighting, math and diagrams.
    FluxdownLite@fluxdown/svelte/liteBasic presentation, ready for selected additions.
    FluxdownRaw@fluxdown/svelte/rawTakes the complete plugins list you supply.

    All plugins

    Composition includes inherited plugin types. A check means the component includes the plugin by default; a blank means it can be added manually.

    PluginCompositionPackageLiteFull
    BlockquotePlugin
    BreakLinePlugin
    CjkPlugin
    CodePlugin
    CodePelePlugin
    CodePrismPlugin
    CodeShikiPlugin
    EffectChunkPlugin
    EffectScalePlugin
    EffectShadPlugin
    EffectSuffixPlugin
    EmojiPlugin
    EmphasisPlugin
    FallbackPlugin
    HeadingPlugin
    ImagePlugin
    LinkPlugin
    ListPlugin
    ParagraphPlugin
    PatchPlugin
    StrongPlugin
    TablePlugin
    TexPlugin
    TexKatexPlugin
    TexMathjaxKatexPlugin

    Package and imports

    svelte-plugins refers to @fluxdown/svelte-plugins, containing Svelte plugin packs, render plugins and slots.

    Import from @fluxdown/svelte-plugins/plugins/<plugin-directory>. Remove the Plugin suffix from the export name and convert it to kebab case: CodeShikiPlugin becomes code-shiki.

    import { CodeShikiPlugin } from '@fluxdown/svelte-plugins/plugins/code-shiki';
    import { HeadingPlugin } from '@fluxdown/svelte-plugins/plugins/heading';

    Import PRESET_FULL_PLUGINS and PRESET_LITE_PLUGINS from @fluxdown/svelte-plugins/full and @fluxdown/svelte-plugins/lite respectively. Both can be passed directly to FluxdownRaw.

    The component's plugins prop can extend either preset. See plugin packs for configuration and composition.