The definition of Marpit directives
Members
(static, constant) globals
Global directives.
Each global directive assigns to the whole slide deck. If you wrote a same directive many times, Marpit only recognizes the last value.
Name | Type | Description |
---|---|---|
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 as |
(static, constant) locals
Local 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 _
(underbar) to directive name. (Spot directives)
Name | Type | Description |
---|---|---|
backgroundColor | Directive | Specify background-color style. |
backgroundImage | Directive | Specify background-image style. |
backgroundPosition | Directive | Specify background-position style. The default value while setting backgroundImage is |
backgroundRepeat | Directive | Specify background-repeat style. The default value while setting backgroundImage is |
backgroundSize | Directive | Specify background-size style. The default value while setting backgroundImage is |
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 |
header | Directive | Specify the content of slide header. It will insert a |
paginate | Directive | Show page number on the slide if you set |
Type Definitions
Directive(value, marpit) → {Object}
Name | Type | Description |
---|---|---|
value | string | Parsed value. |
marpit | Marpit | Marpit instance. |
Assigning object to token meta.
- Type:
- Object