Markdown Stylize Config
The following options adds new stylize feature, and can be set under markdown property in theme options.
Options
booleantrueWhether to enable hint containers, including important, info, note, tip, warning, caution and details.
See also: Markdown → Hint box and @vuepress/plugin-markdown-hint → hint.
booleanWhether to enable GFM alerts.
See also: Markdown → GFM alert and @vuepress/plugin-markdown-hint → alert.
booleanWhether to enable custom align.
See also: Markdown → Align and @vuepress/plugin-markdown-stylize → align.
MarkdownItAttrsOptions | booleanWhether to enable attribute customize support.
See also: Markdown → Attrs and @vuepress/plugin-markdown-stylize → attrs.
string'{'Left delimiter.
string'}'Right delimiter.
(string | RegExp)[][]Allowed attributes. An empty list means allowing all attributes.
"all" | boolean | MarkdownItAttrRuleName[]"all"Rules to enable, where MarkdownItAttrRuleName is one of "fence", "inline", "table", "list", "hr", "softbreak" and "block".
booleanWhether to enable layout support.
See also: Markdown → Layout and @vuepress/plugin-markdown-stylize → layout.
booleanWhether to enable mark support.
See also: Markdown → Mark and @vuepress/plugin-markdown-stylize → mark.
booleanWhether to enable the superscript support.
See also: Markdown → Superscript and @vuepress/plugin-markdown-stylize → sup.
booleanWhether to enable subscript support.
See also: Markdown → Subscript and @vuepress/plugin-markdown-stylize → sub.
booleanWhether to enable spoiler support.
See also: Markdown → Spoiler and @vuepress/plugin-markdown-stylize → spoiler.
booleanWhether to enable steps support.
See also: Markdown → Steps and @vuepress/plugin-markdown-stylize → steps.
MarkdownItStylizeConfig[] | falseStylize inline tokens to create snippet you want.
See also: Markdown → Stylize and @vuepress/plugin-markdown-stylize → custom.
string | RegExpInline token matcher.
(options: { tag: string; content: string; attrs: Record<string, string>; env?: any }) => MarkdownItStylizeResult | null | undefined | voidContent replacer. MarkdownItStylizeResult is:
interface MarkdownItStylizeResult {
/**
* Tag name
*/
tag: string;
/**
* Attributes settings
*/
attrs: Record<string, string>;
/**
* Tag content
*/
content: string;
}Changelog
0c1aa-onde40e-onfc49f-ondd81e-onb1230-on1b917-on22787-on