mermaid

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mermaid provides a built-in plugin that ships Mermaid runtime assets and wires them into pages whose rendered HTML contains a mermaid diagram (class="sarde-mermaid"). Config key `plugins.config.mermaid.always: true` forces load on every page.

The `assets/` directory is expected to contain the Mermaid distribution (mermaid.min.js, init.js). Files are placeholders by default — replace mermaid.min.js with the real Mermaid release before shipping.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg map[string]any) *plugin.Plugin

New constructs the Mermaid plugin from its config map.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL