Markdown Grammar Config
The following options adds new Markdown grammar, and can be set under markdown property in theme options.
Options
booleanWhether to enable component support.
See also: Component → Grammar and @vuepress/plugin-markdown-ext → component.
booleanWhether to enable footnote format support.
See also: Markdown → Footnote and @vuepress/plugin-markdown-ext → footnote.
booleanWhether to enable image mark.
See also: Markdown → Image Mark and @vuepress/plugin-markdown-image → mark.
booleanWhether to enable image size.
See also: Markdown → Image Size and @vuepress/plugin-markdown-image → size.
booleanWhether to enable Obsidian image size.
See also: Markdown → Image Size and @vuepress/plugin-markdown-image → obsidianSize.
booleanWhether to enable legacy image size.
See also: Markdown → Image Size and @vuepress/plugin-markdown-image → legacySize.
MarkdownIncludePluginOptions | booleanWhether to enable Markdown import support. You can pass in an object to customize behavior.
See also: Markdown → Include and @vuepress/plugin-markdown-include.
(path: string, cwd: string) => string(path) => pathHandle the path of the included file.
booleanWhether to deep include files in included Markdown files.
booleanWhether to enable fields support.
See also: Markdown → Fields and @vuepress/plugin-markdown-field → fields.
booleanWhether to enable tabs support.
See also: Markdown → Tabs and @vuepress/plugin-markdown-tab → tabs.
MarkdownItTaskListOptions | booleanWhether to enable tasklist format support. You can pass an object to config task list.
See also: Markdown → Tasklist and @vuepress/plugin-markdown-ext.
booleantrueWhether to disable checkbox.
booleantrueWhether to use <label> to wrap text.
MarkdownMathPluginOptions | booleanWhether to enable math formula support. You can set true to auto detect the installed one of katex/mathjax, or provide plugin options.
See also: Markdown → Math and @vuepress/plugin-markdown-math.
Its type is:
interface MarkdownKatexPluginOptions extends KatexOptions {
type?: "katex";
/**
* Whether to allow inline math with spaces on ends
*
* @description NOT recommended to set this to true, because it will likely break the default usage of $
*
* @default false
*/
allowInlineWithSpace?: boolean;
/**
* Whether enable copy plugin
*
* @default false
*/
copy?: boolean;
/**
* Whether enable mhchem plugin
*
* @default false
*/
mhchem?: boolean;
}
interface MarkdownMathjaxPluginOptions extends Omit<
MarkdownItMathjaxOptions,
"transformer"
> {
type?: "mathjax";
/**
* Whether to allow inline math with spaces on ends
*
* @description NOT recommended to set this to true, because it will likely break the default usage of $
*
* @default false
*/
allowInlineWithSpace?: boolean;
/**
* Output syntax
*
* @default 'svg'
*/
output?: "chtml" | "svg";
/**
* Enable A11y
*
* @default true
*/
a11y?: boolean;
/**
* TeX input options
*/
tex?: MathJaxTexInputOptions;
/**
* Common HTML output options
*/
chtml?: MathjaxCommonHTMLOutputOptions;
/**
* SVG output options
*/
svg?: MathjaxSVGOutputOptions;
}
type MarkdownMathPluginOptions =
MarkdownKatexPluginOptions | MarkdownMathjaxPluginOptions;RevealJsPluginOptions | booleanControls @vuepress/plugin-revealjs which provides presentation support. You can set true to directly enable it, or provide plugin options.
See also: Markdown → Presentation and @vuepress/plugin-revealjs.
RevealJsPlugin[][]Built-in reveal.js plugins to enable.
Available values: highlight, math, notes, search, zoom.
RevealJsTheme[]["auto"]Themes to enable.
Available values: auto, beige, black, blood, league, moon, night, serif, simple, sky, solarized, white.
Changelog
0c1aa-onde40e-onfc49f-on9a4c3-on7d390-on68504-ond8e7e-onb1230-on1b917-on22787-on