MarkdownExample.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. # h1 Heading 8-)
  2. ## h2 Heading
  3. ### h3 Heading
  4. #### h4 Heading
  5. ##### h5 Heading
  6. ###### h6 Heading
  7. ## Horizontal Rules
  8. ___
  9. ---
  10. ***
  11. ## Typographic replacements
  12. Enable typographer option to see result.
  13. (c) (C) (r) (R) (tm) (TM) (p) (P) +-
  14. test.. test... test..... test?..... test!....
  15. !!!!!! ???? ,, -- ---
  16. "Smartypants, double quotes" and 'single quotes'
  17. ## Emphasis
  18. **This is bold text**
  19. __This is bold text__
  20. *This is italic text*
  21. _This is italic text_
  22. ~~Strikethrough~~
  23. ## Blockquotes
  24. > Blockquotes can also be nested...
  25. >> ...by using additional greater-than signs right next to each other...
  26. > > > ...or with spaces between arrows.
  27. ## Lists
  28. Unordered
  29. + Create a list by starting a line with `+`, `-`, or `*`
  30. + Sub-lists are made by indenting 2 spaces:
  31. - Marker character change forces new list start:
  32. * Ac tristique libero volutpat at
  33. + Facilisis in pretium nisl aliquet
  34. - Nulla volutpat aliquam velit
  35. + Very easy!
  36. Ordered
  37. 1. Lorem ipsum dolor sit amet
  38. 2. Consectetur adipiscing elit
  39. 3. Integer molestie lorem at massa
  40. 1. You can use sequential numbers...
  41. 1. ...or keep all the numbers as `1.`
  42. Start numbering with offset:
  43. 57. foo
  44. 1. bar
  45. ## Code
  46. Inline `code`
  47. Indented code
  48. // Some comments
  49. line 1 of code
  50. line 2 of code
  51. line 3 of code
  52. Block code "fences"
  53. ```
  54. Sample text here...
  55. ```
  56. Syntax highlighting
  57. ``` js
  58. var foo = function (bar) {
  59. return bar++;
  60. };
  61. console.log(foo(5));
  62. ```
  63. ## Tables
  64. | Option | Description |
  65. | ------ | ----------- |
  66. | data | path to data files to supply the data that will be passed into templates. |
  67. | engine | engine to be used for processing templates. Handlebars is the default. |
  68. | ext | extension to be used for dest files. |
  69. Right aligned columns
  70. | Option | Description |
  71. | ------:| -----------:|
  72. | data | path to data files to supply the data that will be passed into templates. |
  73. | engine | engine to be used for processing templates. Handlebars is the default. |
  74. | ext | extension to be used for dest files. |
  75. ## Links
  76. [link text](http://dev.nodeca.com)
  77. [link with title](http://nodeca.github.io/pica/demo/ "title text!")
  78. Autoconverted link https://github.com/nodeca/pica (enable linkify to see)
  79. ## Images
  80. ![Minion](https://octodex.github.com/images/minion.png)
  81. ![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
  82. Like links, Images also have a footnote style syntax
  83. ![Alt text][id]
  84. With a reference later in the document defining the URL location:
  85. [id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
  86. ## Plugins
  87. The killer feature of `markdown-it` is very effective support of
  88. [syntax plugins](https://www.npmjs.org/browse/keyword/markdown-it-plugin).
  89. ### [Emojies](https://github.com/markdown-it/markdown-it-emoji)
  90. > Classic markup: :wink: :crush: :cry: :tear: :laughing: :yum:
  91. >
  92. > Shortcuts (emoticons): :-) :-( 8-) ;)
  93. see [how to change output](https://github.com/markdown-it/markdown-it-emoji#change-output) with twemoji.
  94. ### [Subscript](https://github.com/markdown-it/markdown-it-sub) / [Superscript](https://github.com/markdown-it/markdown-it-sup)
  95. - 19^th^
  96. - H~2~O
  97. ### [\<ins>](https://github.com/markdown-it/markdown-it-ins)
  98. ++Inserted text++
  99. ### [\<mark>](https://github.com/markdown-it/markdown-it-mark)
  100. ==Marked text==
  101. ### [Footnotes](https://github.com/markdown-it/markdown-it-footnote)
  102. Footnote 1 link[^first].
  103. Footnote 2 link[^second].
  104. Inline footnote^[Text of inline footnote] definition.
  105. Duplicated footnote reference[^second].
  106. [^first]: Footnote **can have markup**
  107. and multiple paragraphs.
  108. [^second]: Footnote text.
  109. ### [Definition lists](https://github.com/markdown-it/markdown-it-deflist)
  110. Term 1
  111. : Definition 1
  112. with lazy continuation.
  113. Term 2 with *inline markup*
  114. : Definition 2
  115. { some code, part of Definition 2 }
  116. Third paragraph of definition 2.
  117. _Compact style:_
  118. Term 1
  119. ~ Definition 1
  120. Term 2
  121. ~ Definition 2a
  122. ~ Definition 2b
  123. ### [Abbreviations](https://github.com/markdown-it/markdown-it-abbr)
  124. This is HTML abbreviation example.
  125. It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on.
  126. *[HTML]: Hyper Text Markup Language
  127. ### [Custom containers](https://github.com/markdown-it/markdown-it-container)
  128. ::: warning
  129. *here be dragons*
  130. :::