Advertisement
fritigern

MeWe Markdown

Feb 21st, 2019
799
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.08 KB | None | 0 0
  1. MeWe uses markdown to format the text. Let's see what works and what does not...
  2.  
  3. ---
  4. **Headers**
  5. ```
  6. # H1
  7. ## H2
  8. ### H3
  9. #### H4
  10. ##### H5
  11. ###### H6
  12.  
  13. Alternatively, for H1 and H2, an underline-ish style:
  14.  
  15. Alt-H1
  16. ======
  17.  
  18. Alt-H2
  19. ------
  20. ```
  21. Headers
  22. # H1
  23. ## H2
  24. ### H3
  25. #### H4
  26. ##### H5
  27. ###### H6
  28.  
  29. Alternatively, for H1 and H2, an underline-ish style:
  30.  
  31. Alt-H1
  32. ======
  33.  
  34. Alt-H2
  35. ------
  36.  
  37. ---
  38. **Emphasis**
  39. ```
  40. Emphasis, aka italics, with *asterisks* or _underscores_.
  41.  
  42. Strong emphasis, aka bold, with **asterisks** or __underscores__.
  43.  
  44. Combined emphasis with **asterisks and _underscores_**.
  45.  
  46. Strikethrough uses two tildes. ~~Scratch this.~~
  47. ```
  48.  
  49. Emphasis, aka italics, with *asterisks* or _underscores_.
  50.  
  51. Strong emphasis, aka bold, with **asterisks** or __underscores__.
  52.  
  53. Combined emphasis with **asterisks and _underscores_**.
  54.  
  55. Strikethrough uses two tildes. ~~Scratch this.~~
  56.  
  57. ---
  58.  
  59. **Lists**
  60. (In this example, leading and trailing spaces are shown with with dots: ⋅)
  61. ```
  62. 1. First ordered list item
  63. 2. Another item
  64. ⋅⋅* Unordered sub-list.
  65. 1. Actual numbers don't matter, just that it's a number
  66. ⋅⋅1. Ordered sub-list
  67. 4. And another item.
  68.  
  69. ⋅⋅⋅You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
  70.  
  71. ⋅⋅⋅To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅
  72. ⋅⋅⋅Note that this line is separate, but within the same paragraph.⋅⋅
  73. ⋅⋅⋅(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
  74.  
  75. * Unordered list can use asterisks
  76. - Or minuses
  77. + Or pluses
  78. ```
  79.  
  80. 1. First ordered list item
  81. 2. Another item
  82. * Unordered sub-list.
  83. 1. Actual numbers don't matter, just that it's a number
  84. 1. Ordered sub-list
  85. 4. And another item.
  86.  
  87. You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
  88.  
  89. To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅
  90. Note that this line is separate, but within the same paragraph.⋅⋅
  91. (This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
  92.  
  93. * Unordered list can use asterisks
  94. - Or minuses
  95. + Or pluses
  96. ---
  97.  
  98. **Links**
  99. ```
  100. There are two ways to create links.
  101.  
  102. [I'm an inline-style link](https://www.google.com)
  103.  
  104. [I'm an inline-style link with title](https://www.google.com "Google's Homepage")
  105.  
  106. [I'm a reference-style link][Arbitrary case-insensitive reference text]
  107.  
  108. [I'm a relative reference to a repository file](../blob/master/LICENSE)
  109.  
  110. [You can use numbers for reference-style link definitions][1]
  111.  
  112. Or leave it empty and use the [link text itself].
  113.  
  114. URLs and URLs in angle brackets will automatically get turned into links.
  115. http://www.example.com or <http://www.example.com> and sometimes
  116. example.com (but not on Github, for example).
  117.  
  118. Some text to show that the reference links can follow later.
  119.  
  120. [arbitrary case-insensitive reference text]: https://www.mozilla.org
  121. [1]: http://slashdot.org
  122. [link text itself]: http://www.reddit.com
  123. ```
  124. There are two ways to create links.
  125.  
  126. [I'm an inline-style link](https://www.google.com)
  127.  
  128. [I'm an inline-style link with title](https://www.google.com "Google's Homepage")
  129.  
  130. [I'm a reference-style link][Arbitrary case-insensitive reference text]
  131.  
  132. [I'm a relative reference to a repository file](../blob/master/LICENSE)
  133.  
  134. [You can use numbers for reference-style link definitions][1]
  135.  
  136. Or leave it empty and use the [link text itself].
  137.  
  138. URLs and URLs in angle brackets will automatically get turned into links.
  139. http://www.example.com or <http://www.example.com> and sometimes
  140. example.com (but not on Github, for example).
  141.  
  142. Some text to show that the reference links can follow later.
  143.  
  144. [arbitrary case-insensitive reference text]: https://www.mozilla.org
  145. [1]: http://slashdot.org
  146. [link text itself]: http://www.reddit.com
  147.  
  148. ---
  149.  
  150. **Code and Syntax Highlighting**
  151. Code blocks are part of the Markdown spec, but syntax highlighting isn't. However, many renderers -- like Github's and Markdown Here -- support syntax highlighting. Which languages are supported and how those language names should be written will vary from renderer to renderer. Markdown Here supports highlighting for dozens of languages (and not-really-languages, like diffs and HTTP headers); to see the complete list, and how to write the language names, see the highlight.js demo page.
  152. ```
  153. Inline `code` has `back-ticks around` it.
  154. ```
  155. Inline `code` has `back-ticks` around it.
  156.  
  157. Blocks of code are either fenced by lines with three back-ticks ```, or are indented with four spaces. I recommend only using the fenced code blocks -- they're easier and only they support syntax highlighting.
  158. (In this example, the backticks ` are replaced with regular ticks ' to keep them visible)
  159.  
  160. ```
  161. '''javascript
  162. var s = "JavaScript syntax highlighting";
  163. alert(s);
  164. '''
  165. ```
  166.  
  167. ```
  168. '''python
  169. s = "Python syntax highlighting"
  170. print s
  171. '''
  172. ```
  173.  
  174. ```
  175. '''
  176. No language indicated, so no syntax highlighting.
  177. But let's throw in a **tag**.
  178. '''
  179. ```
  180.  
  181. ```javascript
  182. var s = "JavaScript syntax highlighting";
  183. alert(s);
  184. ```
  185.  
  186. ```python
  187. s = "Python syntax highlighting"
  188. print s
  189. ```
  190.  
  191. ```
  192. No language indicated, so no syntax highlighting.
  193. But let's throw in a **tag**.
  194. ```
  195. ---
  196.  
  197. **Tables**
  198. Tables aren't part of the core Markdown spec, but they are part of GFM and Markdown Here supports them. They are an easy way of adding tables to your email -- a task that would otherwise require copy-pasting from another application.
  199. ```
  200. Colons can be used to align columns.
  201.  
  202. | Tables | Are | Cool |
  203. | ------------- |:-------------:| -----:|
  204. | col 3 is | right-aligned | $1600 |
  205. | col 2 is | centered | $12 |
  206. | zebra stripes | are neat | $1 |
  207.  
  208. There must be at least 3 dashes separating each header cell.
  209. The outer pipes (|) are optional, and you don't need to make the
  210. raw Markdown line up prettily. You can also use inline Markdown.
  211.  
  212. Markdown | Less | Pretty
  213. --- | --- | ---
  214. *Still* | `renders` | **nicely**
  215. 1 | 2 | 3
  216. ```
  217. Colons can be used to align columns.
  218.  
  219. | Tables | Are | Cool |
  220. | ------------- |:-------------:| -----:|
  221. | col 3 is | right-aligned | $1600 |
  222. | col 2 is | centered | $12 |
  223. | zebra stripes | are neat | $1 |
  224.  
  225. There must be at least 3 dashes separating each header cell.
  226. The outer pipes (|) are optional, and you don't need to make the
  227. raw Markdown line up prettily. You can also use inline Markdown.
  228.  
  229. Markdown | Less | Pretty
  230. --- | --- | ---
  231. *Still* | `renders` | **nicely**
  232. 1 | 2 | 3
  233.  
  234. ---
  235. **Blockquotes**
  236. ```
  237. > Blockquotes are very handy in email to emulate reply text.
  238. > This line is part of the same quote.
  239.  
  240. Quote break.
  241.  
  242. > This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.
  243. ```
  244. > Blockquotes are very handy in email to emulate reply text.
  245. > This line is part of the same quote.
  246.  
  247. Quote break.
  248.  
  249. > This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.
  250. ---
  251. **Inline HTML**
  252.  
  253. ```
  254. You can also use raw HTML in your Markdown, and it'll mostly work pretty well.
  255.  
  256. <dl>
  257. <dt>Definition list</dt>
  258. <dd>Is something people use sometimes.</dd>
  259.  
  260. <dt>Markdown in HTML</dt>
  261. <dd>Does *not* work **very** well. Use HTML *tags*.</dd>
  262. </dl>
  263. ```
  264. <dl>
  265. <dt>Definition list</dt>
  266. <dd>Is something people use sometimes.</dd>
  267.  
  268. <dt>Markdown in HTML</dt>
  269. <dd>Does *not* work **very** well. Use HTML *tags*.</dd>
  270. </dl>
  271.  
  272. ---
  273.  
  274. **Horizontal Rule**
  275. ```
  276. Three or more...
  277. ---
  278. Hyphens
  279. ***
  280. Asterisks
  281. ___
  282. Underscores
  283. ```
  284. Three or more...
  285. ---
  286. Hyphens
  287. ***
  288. Asterisks
  289. ___
  290. Underscores
  291.  
  292. ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement