markdown/directives/directives
Source: directives.js:6
The definition of Marpit directives
Other
Directive: function
Parameters
value(string) — Parsed value.marpit(Marpit) — Marpit instance.
Returns
Object— Assigning object to token meta.
globals
static
directives.js:25Global directives.
Each global directive assigns to the whole slide deck. If you wrote a same directive many times, Marpit only recognizes the last value.
Properties
headingDivider(Directive) — Specify heading divider option.style(Directive) — Specify the CSS style to apply additionally.theme(Directive) — Specify theme of the slide deck.lang(Directive) — Specify the language of the slide deck. It will assign aslangattribute for each slide.
locals
static
directives.js:76Local directives.
Mainly these are used to change settings each slide page. By default, a local directive applies to the defined page and followed pages.
If you want to set a local directive to single page only, you can add the prefix _ (underscore) to directive name. (Spot directives)
Properties
backgroundColor(Directive) — Specify background-color style.backgroundImage(Directive) — Specify background-image style.backgroundPosition(Directive) — Specify background-position style. The default value while setting backgroundImage iscenter.backgroundRepeat(Directive) — Specify background-repeat style. The default value while setting backgroundImage isno-repeat.backgroundSize(Directive) — Specify background-size style. The default value while setting backgroundImage iscover.class(Directive) — Specify HTML class of section element(s).color(Directive) — Specify color style (base text color).footer(Directive) — Specify the content of slide footer. It will insert a<footer>element to the last of each slide contents.header(Directive) — Specify the content of slide header. It will insert a<header>element to the first of each slide contents.paginate(Directive) — Show page number on the slide if you settrue.holdandskipare also available to disable increment of the page number.