Skip to main content

Examples

Table of Contents

Headings

  • # H1 //Automatically generated from page title, do not use
  • ## H2 //Main page Heading
  • ### H3 //Sub page Heading
  • #### H4 //...
  • ##### H5 //...
  • ###### H6 //...

Emphasis

  • *This text will be* italic
  • _This will also be_ italic
  • **This text will be** bold
  • __This will also be__ bold
  • *You **can** combine them*
  • ~~This will be in~~ strikethrough.

Lists

Unordered

* Item 1
* Item 2
* Item 2a
* Item 2b

Ordered

1. Item 1
2. Item 2
3. Item 3
1. Item 3.i
2. Item 3.ii

Plaintext links and URLs in angle brackets will automatically get turned into links.

There are several different types of links:

  1. External links. Use absolute URL: [external](http://google.com).
  2. Anchor in the same page: [anchor](#images)
  3. Different page in the section: [neighbor](../common-ancestor/[...]/new-page). Note that each ../ climbs one layer up the hierarchy from this page's url.
  4. Different page in another section: [stranger](/section/[...]/new-page)

For links between website pages, refer to the file hierarchy, as well as to other references in the section to different pages.

For links that will be used often inside the page, consider using named links.

  • First link to [page][pagelink]
  • Second link to [page][pagelink]
  • ...
  • [pagelink]: https://google.com "alt text"

Images

If you want to display images in the site you can do it in one of two ways:

  1. Upload files directly to the repo.
    1. If the image is intended for a specific page, upload it website/static/assets, in a folder for that page.
    2. If the image is intended to be used throughout the website, make sure to upload it to website/static/img, under a relevant category.
  2. Upload files to online services like https://imgur.com.

Add an image inline: (hover to see the alt text):

![alt-text](assets/app-creation-process.svg)

Blockquotes

Regular blockquote:

> text

Supported admonition types are: caution, note, important, tip, warning.

:::note[This is my custom title]
A note.
:::

:::caution
A caution.
:::

:::info
An important.
:::

:::tip
A tip.
:::

:::danger
A warning.
:::
This is my custom title

A note.

caution

A caution.

info

An important.

tip

A tip.

warning

A warning.

danger

A warning.

Backslash Escape

Markdown allows you to use backslash escapes to generate literal characters which would otherwise have special meaning in Markdown’s formatting syntax.

*literal asteriks*

Markdown provides backslash escapes for the following characters:

\ backslash
` backtick
* asterisk
_ underscore
{} [] braces
() parentheses
# hash mark
+ plus sign
- minus sign (hyphen)
. dot
! exclamation mark

Code Blocks

Inline code has back-ticks around it. Example:

`getAround()`

And code blocks like that:

```jsx
var s = "JavaScript syntax highlighting";
alert(s);
```

Or:

```jsx
{ "icon": "IconMouseOver.png" }
```

Tables

You can create tables by assembling a list of words and dividing them with hyphens - (for the first row), and then separating each column with a pipe | :

TablesAreCool
col 3 isright-aligned$1600
col 2 iscentered$12
zebra stripesare neat$1
| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |

Inline HTML

You can also use raw HTML in your Markdown, and it'll mostly work pretty well.

However, these can introduce quite a lot of complications over time, so it is recommended to stick to markdown, if that won't work, existing react components, and only if all else fails, should you try to use raw html.

Regardless, always close your html tags properly! Even <br/> tags!

Line Breaks

Line breaks mostly follow a simple rule: A single line break will be ignored.\n\n

Two or more line breaks in succession will be treated as one singular line break.\n This allows you to space your original text in a way where it can easily be read by maintainers,\n without changing the page layout.