Markdown Guide
This markdown guide will not cover markdown basics such as headings. This guide will cover topics more related to Docusaurus' markdown.
Code Blocks#
To make a code block
``` Code block content ```Syntax highlighting#
To enable syntax highlighting, simply add the language like so.
```jsx<View></View>```<View></View>Code Titles#
Code titles can be very useful to define a path for the specific code
```jsx title="/src/components/example.tsx"<View></View>```<View></View>Do note that the language is required to be able to add a title. An easy workaround if no syntax highlighting is desired is to simply input something random e.g. "NONE"
```NONE title="/src/components/example.tsx"<View></View>```Without NONE
<View></View>With "NONE"
<View></View>Anything works. E.g. with "efr56geye"
<View></View>Line hightlight#
It is possible to hightlight 1 or more lines
```jsx {2}<View></View><View></View><View></View>```<View></View><View></View><View></View>Range#
```jsx {1-3}<View></View><View></View><View></View>```<View></View><View></View><View></View>Seperated#
```jsx {1,3}<View></View><View></View><View></View>```<View></View><View></View><View></View>tip
You can mix seperated and range highlights
```jsx {1,3-5}<View></View><View></View><View></View><View></View><View></View><View></View>```<View></View><View></View><View></View><View></View><View></View><View></View>Admonitions#
Admonitions are like the 'tip' above.
Here is a list of all the admonitions.
:::noteSome **content** with _markdown_ `syntax`. Check [this `api`](#).:::
:::tipSome **content** with _markdown_ `syntax`. Check [this `api`](#).:::
:::infoSome **content** with _markdown_ `syntax`. Check [this `api`](#).:::
:::cautionSome **content** with _markdown_ `syntax`. Check [this `api`](#).:::
:::dangerSome **content** with _markdown_ `syntax`. Check [this `api`](#).:::note
Some content with markdown syntax. Check this api.
tip
Some content with markdown syntax. Check this api.
info
Some content with markdown syntax. Check this api.
caution
Some content with markdown syntax. Check this api.
danger
Some content with markdown syntax. Check this api.
Title#
You can also change the default title
:::tip Custom Tip TitleSome **content** with _markdown_ `syntax`. Check [this `api`](#).:::Custom Tip Title
Some content with markdown syntax. Check this api.
Tables#
| Column A | Column B | Column C | Column D | // Columns + column names|------ |------ |--------- | ------------ ||Column A Value | Column B Value | Column C Value | Column D Value| // This is a table row|Column A Value | Column B Value | Column C Value | Column D Value| // This is a table row|Column A Value | Column B Value | Column C Value | Column D Value| // This is a table row| Column A | Column B | Column C | Column D |
|---|---|---|---|
| Column A Value | Column B Value | Column C Value | Column D Value |
| Column A Value | Column B Value | Column C Value | Column D Value |
| Column A Value | Column B Value | Column C Value | Column D Value |
caution
Do not make a blank line between column rows otherwise the table breaks.
Example: Blank line after the first row
| Column A | Column B | Column C | Column D |
|---|---|---|---|
| Column A Value | Column B Value | Column C Value | Column D Value |
|Column A Value | Column B Value | Column C Value | Column D Value| |Column A Value | Column B Value | Column C Value | Column D Value|