1
0

sample.markdown.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. # Header 1 #
  2. ## Header 2 ##
  3. ### Header 3 ### (Hashes on right are optional)
  4. ## Markdown plus h2 with a custom ID ## {#id-goes-here}
  5. [Link back to H2](#id-goes-here)
  6. ```js
  7. var x = "string";
  8. function f() {
  9. return x;
  10. }
  11. ```
  12. <!-- html madness -->
  13. <div class="custom-class" markdown="1">
  14. <div>
  15. nested div
  16. </div>
  17. <script type='text/x-koka'>
  18. function( x: int ) { return x*x; }
  19. </script>
  20. This is a div _with_ underscores
  21. and a & <b class="bold">bold</b> element.
  22. <style>
  23. body { font: "Consolas" }
  24. </style>
  25. </div>
  26. * Bullet lists are easy too
  27. - Another one
  28. + Another one
  29. This is a paragraph, which is text surrounded by
  30. whitespace. Paragraphs can be on one
  31. line (or many), and can drone on for hours.
  32. Now some inline markup like _italics_, **bold**,
  33. and `code()`. Note that underscores
  34. in_words_are ignored.
  35. ````application/json
  36. { value: ["or with a mime type"] }
  37. ````
  38. > Blockquotes are like quoted text in email replies
  39. >> And, they can be nested
  40. 1. A numbered list
  41. 2. Which is numbered
  42. 3. With periods and a space
  43. And now some code:
  44. // Code is just text indented a bit
  45. which(is_easy) to_remember();
  46. And a block
  47. ~~~
  48. // Markdown extra adds un-indented code blocks too
  49. if (this_is_more_code == true && !indented) {
  50. // tild wrapped code blocks, also not indented
  51. }
  52. ~~~
  53. Text with
  54. two trailing spaces
  55. (on the right)
  56. can be used
  57. for things like poems
  58. ### Horizontal rules
  59. * * * *
  60. ****
  61. --------------------------
  62. ![picture alt](/images/photo.jpeg "Title is optional")
  63. ## Markdown plus tables ##
  64. | Header | Header | Right |
  65. | ------ | ------ | -----: |
  66. | Cell | Cell | $10 |
  67. | Cell | Cell | $20 |
  68. * Outer pipes on tables are optional
  69. * Colon used for alignment (right versus left)
  70. ## Markdown plus definition lists ##
  71. Bottled water
  72. : $ 1.25
  73. : $ 1.55 (Large)
  74. Milk
  75. Pop
  76. : $ 1.75
  77. * Multiple definitions and terms are possible
  78. * Definitions can include multiple paragraphs too
  79. *[ABBR]: Markdown plus abbreviations (produces an <abbr> tag)