Markdown for static websites
The basics
Back to topTo make ... | Use | ... to Get |
---|---|---|
Heading 1 (biggest) | # Heading 1 |
Heading 1
|
Heading 2 | ## Heading 2 |
|
Heading 3 | ### Heading 3 |
|
Heading 4 | #### Heading 4 |
|
Heading 5 | ##### Heading 5 |
|
Heading 6 (smallest) | ###### Heading 6 |
|
Italics | *Italics* |
Italics |
Bold | **Bold** |
Bold |
Linked text | [Text to click](https://www.bas.ac.uk) |
Text to click |
Paragraphs (separate with at least 1 blank line) |
First paragraph
|
First paragraph Second paragraph |
Bullet-point list | * list item |
|
Numbered list |
1. list item
2. list item
|
|
Definition list |
BAS
: British Antarctic Survey
|
|
Horizontal rule | --- |
The example headings used above use classes rather than header elements to prevent breaking the table of contents on this page. When the syntax given is used, heading elements will be produced.
Tables
Back to topTo make ... | Use | ... to Get | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Standard table |
| Name | Location | | ---------- | --------------------------- | | Ny-Ålesund | Svalbard, High Arctic | | Rothera | Adelaide Island, Antarctica | | Halley VI | Brunt Ice Shelf, Antarctica | {: .bsk-table .bsk-table-responsive } |
|
||||||||
Table with borders |
| Name | Location | | ---------- | --------------------------- | | Ny-Ålesund | Svalbard, High Arctic | | Rothera | Adelaide Island, Antarctica | | Halley VI | Brunt Ice Shelf, Antarctica | {: .bsk-table .bsk-table-bordered } |
|
||||||||
Table with striped rows |
| Name | Location | | ---------- | --------------------------- | | Ny-Ålesund | Svalbard, High Arctic | | Rothera | Adelaide Island, Antarctica | | Halley VI | Brunt Ice Shelf, Antarctica | {: .bsk-table .bsk-table-striped } |
|
Images
Back to topBlock quotes / pull-outs
Back to topTo make ... | Use | ... to Get |
---|---|---|
Standard block quote | > Any sufficiently advanced technology is indistinguishable from magic. |
Any sufficiently advanced technology is indistinguishable from magic. |
Block quote with citation (URLs are optional) |
> Any sufficiently advanced technology is indistinguishable from magic. |
|
Code
Back to topTo make ... | Use | ... to Get |
---|---|---|
Inline code | `var foo = 'bar';` |
var foo = 'bar'; |
Code block (without syntax highlighting) |
``` |
var foo = 'bar'; var baz = foo; |
Keyboard input | Press <kbd>ctrl</kbd> + <kbd>a</kbd> |
Press ctrl + a |
Code output | Output if successful: <samp>Complete: 12 records processed in 0.134 seconds</samp> |
Output if successful: Complete: 12 records processed in 0.1.34 seconds |