inline_code.unit 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. >>> simple case
  2. before `source` after
  3. <<<
  4. <p>before <code>source</code> after</p>
  5. >>> single characters
  6. before `x` and `_` after
  7. <<<
  8. <p>before <code>x</code> and <code>_</code> after</p>
  9. >>> unmatched backtick
  10. before ` after
  11. <<<
  12. <p>before ` after</p>
  13. >>> multiple spans in one text
  14. a `one` b `two` c
  15. <<<
  16. <p>a <code>one</code> b <code>two</code> c</p>
  17. >>> multi-line
  18. before `first
  19. second` after
  20. <<<
  21. <p>before <code>first second</code> after</p>
  22. >>> simple double backticks
  23. before ``source`` after
  24. <<<
  25. <p>before <code>source</code> after</p>
  26. >>> even more backticks
  27. before ````source with ``` and```` after
  28. <<<
  29. <p>before <code>source with ``` and</code> after</p>
  30. >>> double backticks
  31. before ``can `contain` backticks`` after
  32. <<<
  33. <p>before <code>can `contain` backticks</code> after</p>
  34. >>> double backticks with spaces
  35. before `` `tick` `` after
  36. <<<
  37. <p>before <code>`tick`</code> after</p>
  38. >>> multiline single backticks with spaces
  39. before `in tick
  40. another` after
  41. <<<
  42. <p>before <code>in tick another</code> after</p>
  43. >>> multiline double backticks with spaces
  44. before ``in `tick`
  45. another`` after
  46. <<<
  47. <p>before <code>in `tick` another</code> after</p>
  48. >>> ignore markup inside code
  49. before `*b* _c_` after
  50. <<<
  51. <p>before <code>*b* _c_</code> after</p>
  52. >>> escape HTML characters
  53. `<&>`
  54. <<<
  55. <p><code>&lt;&amp;&gt;</code></p>
  56. >>> escape HTML tags
  57. '*' `<em>`
  58. <<<
  59. <p>'*' <code>&lt;em&gt;</code></p>
  60. >>> leave unmatched backticks when first are too long
  61. before ``` tick `` after
  62. <<<
  63. <p>before ``` tick `` after</p>
  64. >>> leave unmatched backticks when first are too short
  65. before `` tick ``` after
  66. <<<
  67. <p>before `` tick ``` after</p>
  68. >>> issue #497
  69. `'foo'`
  70. <<<
  71. <p><code>'foo'</code></p>