Block Breaks¶
Blocks
provide a structural divison of the MyST document using +++
. These correspond, for example, to separate cells in a Jupyter Notebook. There can be optional metadata associated with the block.
Specification¶
Top-level break in the myst document, breaking it into Blocks
- type: string, (“blockBreak”)
- See also Node
- meta: string, optional
- Block metadata. Conventionally this is a stringified JSON dictionary but it may be any arbitrary string.
- position: object, optional, (Position)
- See also Node
- data: object, optional
- See also Node
Example¶
Markup
AST
Render
+++
# Heading!
+++
type: root
children:
- type: blockBreak
- type: heading
depth: 1
children:
- type: text
value: Heading!
- type: blockBreak
Heading!¶
Comments¶
You may add comments by putting the %
character at the beginning of a line. This will prevent the line from being parsed into the output document.
Specification¶
Comment nodes for comments present in myst but ignored upon render
- type: string, (“mystComment”)
- See also Node
- value: string
- See also Literal
- position: object, optional, (Position)
- See also Node
- data: object, optional
- See also Node
Example¶
Markup
AST
Render
Something
% A comment
Something else
type: root
children:
- type: paragraph
children:
- type: text
value: Something
- type: mystComment
value: A comment
- type: paragraph
children:
- type: text
value: Something else
Something
Something else