3.5 KiB
title | order |
---|---|
Custom components | 90 |
The way we render markdown on our websites is through the use of MDX.
This allows us to extend Markdown with our own so-called custom components.
Such custom components allow us to put things in Markdown content that would typically require a lot more complexity.
Below is a list of custom components you can use in our Markdown content:
Example
Example of the snippets provided by [the buttons plugin](/reference/plugings/buttons)Use Example to embed an example (a part of our examples
pattern) that is used to
illustrate the core API documentation. Check the examples
source code for
a full list of all available parts/examples.
<Example part="plugin_buttons">
Example of the snippets provided by [the buttons plugin](/reference/plugings/buttons)
</Example>
Comment
Do try this at home
Use a Comment where you want to illustrate something is a personal opinion or tip/advice rather than the sort of general neutral voice used throughout our documentation.
The Comment component requires a by
attribute that lists the author of the comment.
<Comment by="joost">**Do** try this at home</Comment>
Fixme
##### ToDo - Include link to roadmap - Fix style for text outside paragraphsUse Fixme to indicate something needs attention/work but you don't have time or can't fix it now.
<Fixme>
##### ToDo
- Include link to roadmap
- Fix style for text outside paragraphs
</Fixme>
Note
##### Also available in black This style also comes in black, which we can all agree is the superior colorUse Note to add something that stands out to draw attention.
<Note>
##### Also available in black
This style also comes in black, which we can all agree is the superior color
</Note>
ReadMore
The ReadMore component allows you to insert a list of child-pages. It's typically used on overview pages, such as out markdown guide page.
<ReadMore />
It won't show anything on this page, since this page has not child-pages.
Related
This snippet is provided by [the buttons plugin](/reference/plugins/buttons)Use Related to add something that is relevant to the current topic.
<Related>
This snippet is provided by [the buttons plugin](/reference/plugins/buttons)
</Related>
Tip
Comparing yourself to others is the fastest way to become unhappyUse Tip for, you know, tips.
<Tip>
Comparing yourself to others is the fastest way to become unhappy
</Tip>
Warning
##### Please make a backup Following these instructions will remove all your dataUse Warning when you want to warn the reader for potential danger or unintended side-effects.
<Warning>
##### Please make a backup
Following these instructions will remove all your data
</Warning>
YouTube
The YouTube components will embed YouTube videos or YouTube playlists responsively.
Embed a video:
<YouTube id='Rz6ShSftDlI' />
Embed a playlist:
<YouTube id='PL1gv5yv3DoZOFSXz7yydeV1H8m6pfwstn' playlist />