Backtick Fenced Code Blocks.text 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. ```
  2. <Fenced>
  3. ```
  4. Code block starting and ending with empty lines:
  5. ```
  6. <Fenced>
  7. ```
  8. Indented code block containing fenced code block sample:
  9. ```
  10. <Fenced>
  11. ```
  12. Fenced code block with indented code block sample:
  13. ```
  14. Some text
  15. Indented code block sample code
  16. ```
  17. Fenced code block with long markers:
  18. ``````````````````
  19. Fenced
  20. ``````````````````
  21. Fenced code block with fenced code block markers of different length in it:
  22. ````
  23. In code block
  24. ```
  25. Still in code block
  26. `````
  27. Still in code block
  28. ````
  29. Fenced code block with Markdown header and horizontal rule:
  30. ```
  31. #test
  32. ---
  33. ```
  34. Fenced code block with link definitions, footnote definition and
  35. abbreviation definitions:
  36. ```
  37. [example]: http://example.com/
  38. [^1]: Footnote def
  39. *[HTML]: HyperText Markup Language
  40. ```
  41. * In a list item with smalish indent:
  42. `````
  43. #!/bin/sh
  44. #
  45. # Preload driver binary
  46. LD_PRELOAD=libusb-driver.so $0.bin $*
  47. `````
  48. With HTML content.
  49. `````
  50. <b>bold</b>
  51. `````
  52. Bug with block level elements in this case:
  53. ```
  54. <div>
  55. </div>
  56. ```
  57. Indented code block of a fenced code block:
  58. ```
  59. haha!
  60. ```
  61. With class:
  62. `````html
  63. <b>bold</b>
  64. `````
  65. ````` html
  66. <b>bold</b>
  67. `````
  68. `````.html
  69. <b>bold</b>
  70. `````
  71. ````` .html
  72. <b>bold</b>
  73. `````
  74. With extra attribute block:
  75. `````{.html}
  76. <b>bold</b>
  77. `````
  78. ````` {.html #codeid}
  79. <b>bold</b>
  80. `````
  81. ````` .html{.bold}
  82. <div>
  83. `````
  84. `````` .html {#codeid}
  85. </div>
  86. ``````