fenced_code_blocks.unit 614 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. >>> without an optional language identifier
  2. ```
  3. code
  4. ```
  5. <<<
  6. <pre><code>code
  7. </code></pre>
  8. >>> with an optional language identifier
  9. ```dart
  10. code
  11. ```
  12. <<<
  13. <pre><code class="language-dart">code
  14. </code></pre>
  15. >>> escape HTML characters
  16. ```
  17. <&>
  18. ```
  19. <<<
  20. <pre><code>&lt;&amp;&gt;
  21. </code></pre>
  22. >>> Pandoc style without language identifier
  23. ~~~~~
  24. code
  25. ~~~~~
  26. <<<
  27. <pre><code>code
  28. </code></pre>
  29. >>> Pandoc style with language identifier
  30. ~~~~~dart
  31. code
  32. ~~~~~
  33. <<<
  34. <pre><code class="language-dart">code
  35. </code></pre>
  36. >>> Pandoc style with inner tildes row
  37. ~~~~~
  38. ~~~
  39. code
  40. ~~~
  41. ~~~~~
  42. <<<
  43. <pre><code>~~~
  44. code
  45. ~~~
  46. </code></pre>