link_reference_definitions.unit 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. >>> Link reference definitions - 192
  2. [foo]: /url "title"
  3. [foo]
  4. <<<
  5. <p><a href="/url" title="title">foo</a></p>
  6. >>> Link reference definitions - 193
  7. [foo]:
  8. /url
  9. 'the title'
  10. [foo]
  11. <<<
  12. <p><a href="/url" title="the title">foo</a></p>
  13. >>> Link reference definitions - 194
  14. [Foo*bar\]]:my_(url) 'title (with parens)'
  15. [Foo*bar\]]
  16. <<<
  17. <p><a href="my_(url)" title="title (with parens)">Foo*bar]</a></p>
  18. >>> Link reference definitions - 195
  19. [Foo bar]:
  20. <my url>
  21. 'title'
  22. [Foo bar]
  23. <<<
  24. <p><a href="my%20url" title="title">Foo bar</a></p>
  25. >>> Link reference definitions - 196
  26. [foo]: /url '
  27. title
  28. line1
  29. line2
  30. '
  31. [foo]
  32. <<<
  33. <p><a href="/url" title="
  34. title
  35. line1
  36. line2
  37. ">foo</a></p>
  38. >>> Link reference definitions - 197
  39. [foo]: /url 'title
  40. with blank line'
  41. [foo]
  42. <<<
  43. <p>[foo]: /url 'title</p>
  44. <p>with blank line'</p>
  45. <p>[foo]</p>
  46. >>> Link reference definitions - 198
  47. [foo]:
  48. /url
  49. [foo]
  50. <<<
  51. <p><a href="/url">foo</a></p>
  52. >>> Link reference definitions - 199
  53. [foo]:
  54. [foo]
  55. <<<
  56. <p>[foo]:</p>
  57. <p>[foo]</p>
  58. >>> Link reference definitions - 200
  59. [foo]: <>
  60. [foo]
  61. <<<
  62. <p><a href="">foo</a></p>
  63. >>> Link reference definitions - 201
  64. [foo]: <bar>(baz)
  65. [foo]
  66. <<<
  67. <p>[foo]: <bar>(baz)</p>
  68. <p>[foo]</p>
  69. >>> Link reference definitions - 202
  70. [foo]: /url\bar\*baz "foo\"bar\baz"
  71. [foo]
  72. <<<
  73. <p><a href="/url%5Cbar*baz" title="foo&quot;bar\baz">foo</a></p>
  74. >>> Link reference definitions - 203
  75. [foo]
  76. [foo]: url
  77. <<<
  78. <p><a href="url">foo</a></p>
  79. >>> Link reference definitions - 204
  80. [foo]
  81. [foo]: first
  82. [foo]: second
  83. <<<
  84. <p><a href="first">foo</a></p>
  85. >>> Link reference definitions - 205
  86. [FOO]: /url
  87. [Foo]
  88. <<<
  89. <p><a href="/url">Foo</a></p>
  90. >>> Link reference definitions - 206
  91. [ΑΓΩ]: /φου
  92. [αγω]
  93. <<<
  94. <p><a href="/%CF%86%CE%BF%CF%85">αγω</a></p>
  95. >>> Link reference definitions - 207
  96. [foo]: /url
  97. <<<
  98. >>> Link reference definitions - 208
  99. [
  100. foo
  101. ]: /url
  102. bar
  103. <<<
  104. <p>bar</p>
  105. >>> Link reference definitions - 209
  106. [foo]: /url "title" ok
  107. <<<
  108. <p>[foo]: /url &quot;title&quot; ok</p>
  109. >>> Link reference definitions - 210
  110. [foo]: /url
  111. "title" ok
  112. <<<
  113. <p>&quot;title&quot; ok</p>
  114. >>> Link reference definitions - 211
  115. [foo]: /url "title"
  116. [foo]
  117. <<<
  118. <pre><code>[foo]: /url &quot;title&quot;
  119. </code></pre>
  120. <p>[foo]</p>
  121. >>> Link reference definitions - 212
  122. ```
  123. [foo]: /url
  124. ```
  125. [foo]
  126. <<<
  127. <pre><code>[foo]: /url
  128. </code></pre>
  129. <p>[foo]</p>
  130. >>> Link reference definitions - 213
  131. Foo
  132. [bar]: /baz
  133. [bar]
  134. <<<
  135. <p>Foo
  136. [bar]: /baz</p>
  137. <p>[bar]</p>
  138. >>> Link reference definitions - 214
  139. # [Foo]
  140. [foo]: /url
  141. > bar
  142. <<<
  143. <h1><a href="/url">Foo</a></h1>
  144. <blockquote>
  145. <p>bar</p>
  146. </blockquote>
  147. >>> Link reference definitions - 215
  148. [foo]: /url
  149. bar
  150. ===
  151. [foo]
  152. <<<
  153. <h1>bar</h1>
  154. <p><a href="/url">foo</a></p>
  155. >>> Link reference definitions - 216
  156. [foo]: /url
  157. ===
  158. [foo]
  159. <<<
  160. <p>===
  161. <a href="/url">foo</a></p>
  162. >>> Link reference definitions - 217
  163. [foo]: /foo-url "foo"
  164. [bar]: /bar-url
  165. "bar"
  166. [baz]: /baz-url
  167. [foo],
  168. [bar],
  169. [baz]
  170. <<<
  171. <p><a href="/foo-url" title="foo">foo</a>,
  172. <a href="/bar-url" title="bar">bar</a>,
  173. <a href="/baz-url">baz</a></p>
  174. >>> Link reference definitions - 218
  175. [foo]
  176. > [foo]: /url
  177. <<<
  178. <p><a href="/url">foo</a></p>
  179. <blockquote>
  180. </blockquote>