Table of Content
1. Blocks 🔗
NML supports different kind of blocks. The syntax goes like this:
1 | >[!Warning] |
2 | >Text... |
3 | > * A list |
4 | >> [!Quote][author=me] |
5 | >>Something I said.. |
Which looks something like this:
Text...
- A list
Something I said..
The default blocks types are:
- Quote (see Quotes for properties)
- Warning
- Note
- Todo
- Tip
- Caution
Blocks can be comprised of any paragraph element (e.g style, links) as wall as other blocks and lists.
2. Nesting blocks 🔗
You can nest blocks as much as you like
Here's a quote inside the tip.
Some information...Back to the quote
Another block
Given by the following
1 | >[!Tip] |
2 | > You can nest blocks as much as you like |
3 | >>[!Quote] |
4 | >> Here's a quote inside the tip. |
5 | >>>[!Note] |
6 | >>>Some information... |
7 | >> Back to the quote |
8 | > |
9 | >>[!Caution] |
10 | >>Another block |
3. Quotes 🔗
Quotes support properties and have a style under style key style.block.quote.
Properties:
Style:
author_pos
Position of the author statement, available options:- None Hides the author
- Before Displays the author before the quote
- After Displays the author after the quote (default)
format
An array with 3 format strings to control how the author is displayed:- Format for author+cite
- Format for author only
- Format for cite only
Default Style
1 | { |
2 | "author_pos": "After", |
3 | "format": ["{author}, {cite}", "{author}", "{cite}"], |
4 | } |