|
| 1 | +# Example Chapter |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +## h2 Heading |
| 6 | + |
| 7 | +### h3 Heading |
| 8 | +#### h4 Heading |
| 9 | +##### h5 Heading |
| 10 | +###### h6 Heading |
| 11 | + |
| 12 | + |
| 13 | +## Horizontal Rules |
| 14 | + |
| 15 | +___ |
| 16 | + |
| 17 | +--- |
| 18 | + |
| 19 | +*** |
| 20 | + |
| 21 | + |
| 22 | +## Typographic replacements |
| 23 | + |
| 24 | +Enable typographer option to see result. |
| 25 | + |
| 26 | +(c) (C) (r) (R) (tm) (TM) (p) (P) +- |
| 27 | + |
| 28 | +test.. test... test..... test?..... test!.... |
| 29 | + |
| 30 | +!!!!!! ???? ,, -- --- |
| 31 | + |
| 32 | +"Smartypants, double quotes" and 'single quotes' |
| 33 | + |
| 34 | + |
| 35 | +## Emphasis |
| 36 | + |
| 37 | +**This is bold text** |
| 38 | + |
| 39 | +__This is bold text__ |
| 40 | + |
| 41 | +*This is italic text* |
| 42 | + |
| 43 | +_This is italic text_ |
| 44 | + |
| 45 | +~~Strikethrough~~ |
| 46 | + |
| 47 | + |
| 48 | +## Blockquotes |
| 49 | + |
| 50 | + |
| 51 | +> Blockquotes can also be nested... |
| 52 | +> > ...by using additional greater-than signs right next to each other... |
| 53 | +> > |
| 54 | +> > > ...or with spaces between arrows. |
| 55 | +
|
| 56 | + |
| 57 | +## Lists |
| 58 | + |
| 59 | +Unordered |
| 60 | + |
| 61 | ++ Create a list by starting a line with `+`, `-`, or `*` |
| 62 | ++ Sub-lists are made by indenting 2 spaces: |
| 63 | + - Marker character change forces new list start: |
| 64 | + * Ac tristique libero volutpat at |
| 65 | + + Facilisis in pretium nisl aliquet |
| 66 | + - Nulla volutpat aliquam velit |
| 67 | ++ Very easy! |
| 68 | + |
| 69 | +Ordered |
| 70 | + |
| 71 | +1. Lorem ipsum dolor sit amet |
| 72 | +2. Consectetur adipiscing elit |
| 73 | +3. Integer molestie lorem at massa |
| 74 | + |
| 75 | + |
| 76 | +1. You can use sequential numbers... |
| 77 | +1. ...or keep all the numbers as `1.` |
| 78 | + |
| 79 | +Start numbering with offset: |
| 80 | + |
| 81 | +57. foo |
| 82 | +1. bar |
| 83 | + |
| 84 | + |
| 85 | +## Code |
| 86 | + |
| 87 | +Inline `code` |
| 88 | + |
| 89 | +Indented code |
| 90 | + |
| 91 | + // Some comments |
| 92 | + line 1 of code |
| 93 | + line 2 of code |
| 94 | + line 3 of code |
| 95 | + |
| 96 | + |
| 97 | +Block code "fences" |
| 98 | + |
| 99 | +``` |
| 100 | +Sample text here... |
| 101 | +``` |
| 102 | + |
| 103 | +Syntax highlighting |
| 104 | + |
| 105 | +``` js |
| 106 | +var foo = function (bar) { |
| 107 | + return bar++; |
| 108 | +}; |
| 109 | + |
| 110 | +console.log(foo(5)); |
| 111 | +``` |
| 112 | + |
| 113 | +## Tables |
| 114 | + |
| 115 | +Table: Left aligned columns |
| 116 | +| Option | Description | |
| 117 | +| ------ | ----------- | |
| 118 | +| data | path to data files to supply the data that will be passed into templates. | |
| 119 | +| engine | engine to be used for processing templates. Handlebars is the default. | |
| 120 | +| ext | extension to be used for dest files. | |
| 121 | + |
| 122 | + |
| 123 | +Table: Right aligned columns |
| 124 | +| Option | Description | |
| 125 | +| ------:| -----------:| |
| 126 | +| data | path to data files to supply the data that will be passed into templates. | |
| 127 | +| engine | engine to be used for processing templates. Handlebars is the default. | |
| 128 | +| ext | extension to be used for dest files. | |
| 129 | + |
| 130 | + |
| 131 | +## Links |
| 132 | + |
| 133 | +[link text](http://dev.nodeca.com) |
| 134 | + |
| 135 | +[link with title](http://nodeca.github.io/pica/demo/ "title text!") |
| 136 | + |
| 137 | +Autoconverted link https://github.com/nodeca/pica (enable linkify to see) |
| 138 | + |
| 139 | + |
| 140 | +## Images |
| 141 | + |
| 142 | + |
| 143 | +Figure: Minion |
| 144 | + |
| 145 | + |
| 146 | +Figure: Stormtroopocat |
| 147 | + |
| 148 | + |
| 149 | +## Plugins |
| 150 | + |
| 151 | +The killer feature of `markdown-it` is very effective support of |
| 152 | +[syntax plugins](https://www.npmjs.org/browse/keyword/markdown-it-plugin). |
| 153 | + |
| 154 | + |
| 155 | +### [Emojies](https://github.com/markdown-it/markdown-it-emoji) |
| 156 | + |
| 157 | +> Classic markup: :wink: :crush: :cry: :tear: :laughing: :yum: |
| 158 | +> |
| 159 | +> Shortcuts (emoticons): :-) :-( 8-) ;) |
| 160 | +
|
| 161 | +see [how to change output](https://github.com/markdown-it/markdown-it-emoji#change-output) with twemoji. |
| 162 | + |
| 163 | + |
| 164 | +### [Subscript](https://github.com/markdown-it/markdown-it-sub) / [Superscript](https://github.com/markdown-it/markdown-it-sup) |
| 165 | + |
| 166 | +- 19^th^ |
| 167 | +- H~2~O |
| 168 | + |
| 169 | + |
| 170 | +### [\<ins>](https://github.com/markdown-it/markdown-it-ins) |
| 171 | + |
| 172 | +++Inserted text++ |
| 173 | + |
| 174 | + |
| 175 | +### [\<mark>](https://github.com/markdown-it/markdown-it-mark) |
| 176 | + |
| 177 | +==Marked text== |
| 178 | + |
| 179 | + |
| 180 | +### [Footnotes](https://github.com/markdown-it/markdown-it-footnote) |
| 181 | + |
| 182 | +Footnote 1 link[^first]. |
| 183 | + |
| 184 | +Footnote 2 link[^second]. |
| 185 | + |
| 186 | +Inline footnote^[Text of inline footnote] definition. |
| 187 | + |
| 188 | +Duplicated footnote reference[^second]. |
| 189 | + |
| 190 | +[^first]: Footnote **can have markup** |
| 191 | + |
| 192 | + and multiple paragraphs. |
| 193 | + |
| 194 | +[^second]: Footnote text. |
| 195 | + |
| 196 | + |
| 197 | +### [Definition lists](https://github.com/markdown-it/markdown-it-deflist) |
| 198 | + |
| 199 | +Term 1 |
| 200 | + |
| 201 | +: Definition 1 |
| 202 | +with lazy continuation. |
| 203 | + |
| 204 | +Term 2 with *inline markup* |
| 205 | + |
| 206 | +: Definition 2 |
| 207 | + |
| 208 | + { some code, part of Definition 2 } |
| 209 | + |
| 210 | + Third paragraph of definition 2. |
| 211 | + |
| 212 | +_Compact style:_ |
| 213 | + |
| 214 | +Term 1 |
| 215 | + ~ Definition 1 |
| 216 | + |
| 217 | +Term 2 |
| 218 | + ~ Definition 2a |
| 219 | + ~ Definition 2b |
| 220 | + |
| 221 | + |
| 222 | +### [Abbreviations](https://github.com/markdown-it/markdown-it-abbr) |
| 223 | + |
| 224 | +This is HTML abbreviation example. |
| 225 | + |
| 226 | +It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on. |
| 227 | + |
| 228 | +*[HTML]: Hyper Text Markup Language |
| 229 | + |
| 230 | +### [Custom containers](https://github.com/markdown-it/markdown-it-container) |
| 231 | + |
| 232 | +::: warning |
| 233 | +*here be dragons* |
| 234 | +::: |
| 235 | + |
| 236 | +### Anchors |
| 237 | + |
| 238 | +[this is a link](#anchor) |
| 239 | + |
| 240 | +[this is anchor]{#anchor} |
| 241 | + |
| 242 | +Comments: |
| 243 | + |
| 244 | +<!-- This is commented out. --> |
| 245 | +[comment]: |
| 246 | + |
| 247 | + |
| 248 | + |
0 commit comments