- H1s will be in higher level layouts. Do not include in md body.
- Page title should go in Front Matter at top of MD file.
Example:
--- title: Create a New App ---
- No more
markdown=1, instead leave a blank line after. - Core Concepts intro and orientation divs have had their
coreconcepts-prefixes removed and can now be created as MD containers.coreconcepts-storysequenceblocks have been replaced with individualstorystepblocks around each step in a story sequence. Use:If you need to nest containers add an additional::: intro words words ::::on each outer layer.
- Do NOT indent contents of Admonitions
- Admonitions must be closed with
!!! - You can add a title (Example:
!!! info Run in `nix-shell https://holochain.love`), Otherwise it will use the name of the Admonition.
- Include language (i.e.:
bash) always. - If you want to surpress the copy button wrap the code block in a
::: output-blockcontainer - Code blocks meant to be copied and pasted into a terminal should use
shellrather thanbash; they'll automatically get styled with a non-copyable$at the beginning of the first line.
- add
{target=_blank}after link markdown parens
- add
{.btn-purple}after link markdown parens

{.center}
Note: The new line after the image is required to put the class in the enclosing <p>
Obviously it would be optimal to actually resize the image. But you can tweak the max-width with the classes
sz10p (10%) through sz200p (200%)
{.sz50p}
For elements with a fixed aspect ratio that can't be calculated automatically by the browser's layout engine, such as YouTube embeds, use this helper (shown here with two ways of specifying a YouTube video with a 16×9 aspect ratio):
%%% responsive 16/9
<iframe src="https://youtube.com/etc"></iframe>
%%%
%%% responsive 56.25%
<iframe src="https://youtube.com/etc"></iframe>
%%%
An on-page table of contents is generated automatically for every page from all h2 to h6 elements that have id attributes. If you don't want this to happen, put tocData: false in your page's front matter. You can also selectively prevent a header from being included in the table of contents by either suppressing its ID attribute or adding a data-no-toc attribute:
## I am a header that shouldn't appear in the TOC {data-no-toc}If you want to craft a custom table of contents, instead assign a nested array to tocData that looks like this:
tocData:
- text: First section header
href: first-section-header
children:
- text: Subsection header 1
href: subsection-header-1
- text: Subsection header 2
href: subsection-header-2
- text: Second section header
href: second-section-header
- text: Conclusion
href: conclusionThere are two things to note about the above:
- IDs are automatically generated for all headers; they'll be the slug of the header text. You can override a header's ID with a
{#custom-id}attribute. - Although the
hrefproperty suggests it should be a resolvable URL, don't put the#at the beginning of its value.
- using callMacroByName