|
| 1 | ++++ |
| 2 | +title = "Markdown Syntax Guide" |
| 3 | +description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." |
| 4 | +date = 2021-04-20T09:19:42+00:00 |
| 5 | +updated = 2021-04-20T09:19:42+00:00 |
| 6 | +draft = true # Leave this as true so that it is not published |
| 7 | +template = "blog/page.html" |
| 8 | + |
| 9 | +[taxonomies] |
| 10 | +authors = ["Public"] |
| 11 | + |
| 12 | +[extra] |
| 13 | +lead = "This article offers a sample of basic Markdown syntax that can be used in Zola content files, also it shows whether basic HTML elements are decorated with CSS in a Zola theme." |
| 14 | ++++ |
| 15 | + |
| 16 | +## Headings |
| 17 | + |
| 18 | +The following HTML `<h1>`—`<h6>` elements represent six levels of section |
| 19 | +headings. `<h1>` is the highest section level while `<h6>` is the lowest. |
| 20 | + |
| 21 | +# H1 |
| 22 | +## H2 |
| 23 | +### H3 |
| 24 | +#### H4 |
| 25 | +##### H5 |
| 26 | +###### H6 |
| 27 | + |
| 28 | +## Paragraph |
| 29 | + |
| 30 | +Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, |
| 31 | +voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma |
| 32 | +dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as |
| 33 | +cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin |
| 34 | +porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? |
| 35 | +Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit |
| 36 | +ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda |
| 37 | +veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore |
| 38 | +eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata |
| 39 | +tiustia prat. |
| 40 | + |
| 41 | +Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne |
| 42 | +sapicia is sinveli squiatum, core et que aut hariosam ex eat. |
| 43 | + |
| 44 | +## Blockquotes |
| 45 | + |
| 46 | +The blockquote element represents content that is quoted from another source, |
| 47 | +optionally with a citation which must be within a `footer` or `cite` element, |
| 48 | +and optionally with in-line changes such as annotations and abbreviations. |
| 49 | + |
| 50 | +#### Blockquote without attribution |
| 51 | + |
| 52 | +> Tiam, ad mint andaepu dandae nostion secatur sequo quae. |
| 53 | +> **Note** that you can use *Markdown syntax* within a blockquote. |
| 54 | +
|
| 55 | +#### Blockquote with attribution |
| 56 | + |
| 57 | +> Don't communicate by sharing memory, share memory by communicating.<br> |
| 58 | +> — <cite>Rob Pike[^1]</cite> |
| 59 | +
|
| 60 | +> All men by nature desire to know.<br> |
| 61 | +> ― <cite>Aristotle[^2]</cite> |
| 62 | +
|
| 63 | +## Tables |
| 64 | + |
| 65 | +Tables aren't part of the core Markdown spec, but Zola supports them |
| 66 | +out-of-the-box. |
| 67 | + |
| 68 | + Name | Age |
| 69 | +--------|------ |
| 70 | + Bob | 27 |
| 71 | + Alice | 23 |
| 72 | + |
| 73 | +#### Inline Markdown within tables |
| 74 | + |
| 75 | +| Italics | Bold | Code | |
| 76 | +| -------- | -------- | ------ | |
| 77 | +| *italics* | **bold** | `code` | |
| 78 | + |
| 79 | +## Code Blocks |
| 80 | + |
| 81 | +#### Code block with backticks |
| 82 | + |
| 83 | +```html |
| 84 | +<!doctype html> |
| 85 | +<html lang="en"> |
| 86 | +<head> |
| 87 | + <meta charset="utf-8"> |
| 88 | + <title>Example HTML5 Document</title> |
| 89 | +</head> |
| 90 | +<body> |
| 91 | + <p>Test</p> |
| 92 | +</body> |
| 93 | +</html> |
| 94 | +``` |
| 95 | + |
| 96 | +#### Code block indented with four spaces |
| 97 | + |
| 98 | + <!doctype html> |
| 99 | + <html lang="en"> |
| 100 | + <head> |
| 101 | + <meta charset="utf-8"> |
| 102 | + <title>Example HTML5 Document</title> |
| 103 | + </head> |
| 104 | + <body> |
| 105 | + <p>Test</p> |
| 106 | + </body> |
| 107 | + </html> |
| 108 | + |
| 109 | +## List Types |
| 110 | + |
| 111 | +#### Ordered List |
| 112 | + |
| 113 | +1. First item |
| 114 | +2. Second item |
| 115 | +3. Third item |
| 116 | + |
| 117 | +#### Unordered List |
| 118 | + |
| 119 | +- List item |
| 120 | +- Another item |
| 121 | +- And another item |
| 122 | + |
| 123 | +#### Nested list |
| 124 | + |
| 125 | +- Fruit |
| 126 | + - Apple |
| 127 | + - Orange |
| 128 | + - Banana |
| 129 | +- Dairy |
| 130 | + - Milk |
| 131 | + - Cheese |
| 132 | + |
| 133 | +## Other Elements — abbr, sub, sup, kbd, mark |
| 134 | + |
| 135 | +<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format. |
| 136 | + |
| 137 | +H<sub>2</sub>O |
| 138 | + |
| 139 | +X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup> |
| 140 | + |
| 141 | +Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the |
| 142 | +session. |
| 143 | + |
| 144 | +Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and |
| 145 | +other small creatures. |
| 146 | + |
| 147 | +--- |
| 148 | +<!-- Note: There must be a blank line between every two lines of the footnote difinition. --> |
| 149 | +[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) |
| 150 | +during Gopherfest, November 18, 2015. |
| 151 | + |
| 152 | +[^2]: The quote is the first sentence of Aristotle's [Metaphysics](http://classics.mit.edu/Aristotle/metaphysics.html). |
0 commit comments