cm_links.html 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <h1 id="links">Links</h1>
  2. <h3 id="example-459">Example 459</h3>
  3. <p><a href="/uri" title="title">link</a></p>
  4. <h3 id="example-460">Example 460</h3>
  5. <p><a href="/uri">link</a></p>
  6. <h3 id="example-461">Example 461</h3>
  7. <p><a href="">link</a></p>
  8. <h3 id="example-462">Example 462</h3>
  9. <p><a href="">link</a></p>
  10. <h3 id="example-463">Example 463</h3>
  11. <p>[link](/my uri)</p>
  12. <h3 id="example-464">Example 464</h3>
  13. <p>[link](&lt;/my uri&gt;)</p>
  14. <h3 id="example-465">Example 465</h3>
  15. <p>[link](foo
  16. bar)</p>
  17. <h3 id="example-466">Example 466</h3>
  18. <p>[link](<foo
  19. bar>)</p>
  20. <h3 id="example-467">Example 467</h3>
  21. <p><a href="(foo)">link</a></p>
  22. <h3 id="example-4680">Example 4680</h3>
  23. <p>ONE LEVEL of parentheses are allowed without escaping, as long as they are balanced:</p>
  24. <p><a href="foo(bar)">link</a></p>
  25. <h3 id="example-469">Example 469</h3>
  26. <p><a href="foo(and(bar)">link</a></p>
  27. <h3 id="example-470">Example 470</h3>
  28. <p>However, if you have ANY unbalanced parentheses, you need to escape or use the &lt;...&gt; form:</p>
  29. <p><a href="foo(and(bar)">link</a></p>
  30. <h3 id="example-471">Example 471</h3>
  31. <p><a href="foo):">link</a></p>
  32. <h3 id="example-472">Example 472</h3>
  33. <p><a href="#fragment">link</a></p>
  34. <p><a href="http://example.com#fragment">link</a></p>
  35. <p><a href="http://example.com?foo=3#frag">link</a></p>
  36. <h3 id="example-473">Example 473</h3>
  37. <p><a href="foo%5Cbar">link</a></p>
  38. <h3 id="example-4740">Example 4740</h3>
  39. <p><a href="foo%20b&auml;">link</a></p>
  40. <h3 id="example-475">Example 475</h3>
  41. <p><a href="%22title%22">link</a></p>
  42. <h3 id="example-476">Example 476</h3>
  43. <p><a href="/url" title="title">link</a>
  44. <a href="/url" title="title">link</a>
  45. <a href="/url" title="title">link</a></p>
  46. <h3 id="example-477">Example 477</h3>
  47. <p><a href="/url" title="title &quot;&quot;">link</a></p>
  48. <h3 id="example-479">Example 479</h3>
  49. <p>[link](/url &quot;title &quot;and&quot; title&quot;)</p>
  50. <h3 id="example-480">Example 480</h3>
  51. <p><a href="/url" title="title &quot;and&quot; title">link</a></p>
  52. <h3 id="example-481">Example 481</h3>
  53. <p><a href="/uri" title="title">link</a></p>
  54. <h3 id="example-482">Example 482</h3>
  55. <p>[link] (/uri)</p>
  56. <h3 id="example-4830">Example 4830</h3>
  57. <p>The link text may contain ONE LEVEL of balanced brackets, but not unbalanced ones, unless they are escaped:</p>
  58. <p><a href="/uri">link [foo4830]</a></p>
  59. <h3 id="example-484">Example 484</h3>
  60. <p>[link] bar](/uri)</p>
  61. <h3 id="example-485">Example 485</h3>
  62. <p>[link <a href="/uri">bar</a></p>
  63. <h3 id="example-486">Example 486</h3>
  64. <p><a href="/uri">link [bar</a></p>
  65. <h3 id="example-487">Example 487</h3>
  66. <p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>
  67. <h3 id="example-488">Example 488</h3>
  68. <p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p>
  69. <h3 id="example-493">Example 493</h3>
  70. <p><a href="baz*">foo *bar</a></p>
  71. <h3 id="example-494">Example 494</h3>
  72. <p><em>foo [bar</em> baz]</p>
  73. <h3 id="example-498">Example 498</h3>
  74. <p><a href="/url" title="title">foo</a></p>
  75. <h3 id="example-4990">Example 4990</h3>
  76. <p><a href="/uri">link [foo499]</a></p>
  77. <h3 id="example-500">Example 500</h3>
  78. <p><a href="/uri">link [bar</a></p>
  79. <h3 id="example-501">Example 501</h3>
  80. <p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>
  81. <h3 id="example-502">Example 502</h3>
  82. <p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p>
  83. <h3 id="example-5030">Example 5030</h3>
  84. <p><a href="/uri">foo <a href="/uri">bar</a></a></p>
  85. <h3 id="example-504">Example 504</h3>
  86. <p><a href="/uri">foo <em>bar <a href="/uri">baz</a></em></a></p>
  87. <h3 id="example-506">Example 506</h3>
  88. <p><a href="/uri">foo *bar</a></p>
  89. <h3 id="example-510">Example 510</h3>
  90. <p><a href="/url" title="title">foo</a></p>
  91. <h3 id="example-511">Example 511</h3>
  92. <p><a href="/url">Толпой</a> is a Russian word.</p>
  93. <h3 id="example-512">Example 512</h3>
  94. <p><a href="/url">Baz</a></p>
  95. <h3 id="example-513">Example 513</h3>
  96. <p>[foo513] <a href="/url" title="title">bar513</a></p>
  97. <h3 id="example-514">Example 514</h3>
  98. <p>[foo514]
  99. <a href="/url" title="title">bar514</a></p>
  100. <h3 id="example-515">Example 515</h3>
  101. <p><a href="/url1">bar</a></p>
  102. <h3 id="example-516">Example 516</h3>
  103. <p>[bar][foo!516]</p>
  104. <h3 id="example-517">Example 517</h3>
  105. <p>[foo517][ref[517]</p>
  106. <p>[ref[517]: /uri</p>
  107. <h3 id="example-518">Example 518</h3>
  108. <p>[foo518][ref[bar518]518]</p>
  109. <p>[ref[bar518]518]: /uri</p>
  110. <h3 id="example-519">Example 519</h3>
  111. <p>[[[foo519]]]</p>
  112. <p>[[[foo519]]]: /url</p>
  113. <h3 id="example-520">Example 520</h3>
  114. <p><a href="/uri">foo</a></p>
  115. <h3 id="example-521">Example 521</h3>
  116. <p><a href="/uri">bar\</a></p>
  117. <h3 id="example-522">Example 522</h3>
  118. <p>[]</p>
  119. <p>[]: /uri</p>
  120. <h3 id="example-523">Example 523</h3>
  121. <p>[
  122. ]</p>
  123. <p>[
  124. ]: /uri</p>
  125. <h3 id="example-524">Example 524</h3>
  126. <p><a href="/url" title="title">foo</a></p>
  127. <h3 id="example-525">Example 525</h3>
  128. <p><a href="/url" title="title"><em>foo</em> bar</a></p>
  129. <h3 id="example-526">Example 526</h3>
  130. <p><a href="/url" title="title">Foo</a></p>
  131. <h3 id="example-527">Example 527</h3>
  132. <p><a href="/url" title="title">foo</a>
  133. []</p>
  134. <h3 id="example-528">Example 528</h3>
  135. <p><a href="/url" title="title">foo</a></p>
  136. <h3 id="example-529">Example 529</h3>
  137. <p><a href="/url" title="title"><em>foo</em> bar</a></p>
  138. <h3 id="example-530">Example 530</h3>
  139. <p>[<a href="/url" title="title"><em>foo</em> bar</a>]</p>
  140. <h3 id="example-531">Example 531</h3>
  141. <p>[[bar <a href="/url">foo531</a></p>
  142. <h3 id="example-532">Example 532</h3>
  143. <p><a href="/url" title="title">Foo</a></p>
  144. <h3 id="example-533">Example 533</h3>
  145. <p><a href="/url">foo533</a> bar</p>
  146. <h3 id="example-534">Example 534</h3>
  147. <p>[foo]</p>
  148. <h3 id="example-536">Example 536</h3>
  149. <p><a href="/url2">foo536</a></p>
  150. <h3 id="example-537">Example 537</h3>
  151. <p><a href="/url1">foo537</a></p>
  152. <h3 id="example-538">Example 538</h3>
  153. <p><a href="">foo538</a></p>
  154. <h3 id="example-539">Example 539</h3>
  155. <p><a href="/url1">foo539</a>(not a link)</p>
  156. <h3 id="example-540">Example 540</h3>
  157. <p>[foo540]<a href="/url">bar540</a></p>
  158. <h3 id="example-541">Example 541</h3>
  159. <p><a href="/url2">foo541</a><a href="/url1">baz541</a></p>
  160. <h3 id="example-542">Example 542</h3>
  161. <p>[foo542]<a href="/url1">bar542</a></p>
  162. <h3 id="example-543">Example 543</h3>
  163. <p><img src="/url" alt="foo543" title="title" /></p>
  164. <h3 id="example-5440">Example 5440</h3>
  165. <p><img src="train.jpg" alt="foo *bar*544" title="train &amp; tracks" /></p>
  166. <h3 id="example-5450">Example 5450</h3>
  167. <p><img src="/url2" alt="foo ![bar](/url)" /></p>
  168. <h3 id="example-5460">Example 5460</h3>
  169. <p><img src="/url2" alt="foo [bar](/url)" /></p>
  170. <h3 id="example-5470">Example 5470</h3>
  171. <p><img src="train.jpg" alt="foo *bar*547" title="train &amp; tracks" /></p>
  172. <h3 id="example-5480">Example 5480</h3>
  173. <p><img src="train.jpg" alt="foo *bar*" title="train &amp; tracks" /></p>
  174. <h3 id="example-549">Example 549</h3>
  175. <p><img src="train.jpg" alt="foo" /></p>
  176. <h3 id="example-550">Example 550</h3>
  177. <p>My <img src="/path/to/train.jpg" alt="foo bar" title="title" /></p>
  178. <h3 id="example-551">Example 551</h3>
  179. <p><img src="url" alt="foo" /></p>
  180. <h3 id="example-552">Example 552</h3>
  181. <p><img src="/url" alt="" /></p>
  182. <h3 id="example-553">Example 553</h3>
  183. <p><img src="/url" alt="foo" /></p>
  184. <h3 id="example-554">Example 554</h3>
  185. <p><img src="/url" alt="foo" /></p>
  186. <h3 id="example-555">Example 555</h3>
  187. <p><img src="/url" alt="foo" title="title" /></p>
  188. <h3 id="example-5560">Example 5560</h3>
  189. <p><img src="/url" alt="*foo* bar" title="title" /></p>
  190. <h3 id="example-557">Example 557</h3>
  191. <p><img src="/url" alt="Foo" title="title" /></p>
  192. <h3 id="example-558">Example 558</h3>
  193. <p><img src="/url" alt="foo" title="title" />
  194. []</p>
  195. <h3 id="example-559">Example 559</h3>
  196. <p><img src="/url" alt="foo" title="title" /></p>
  197. <h3 id="example-5600">Example 5600</h3>
  198. <p><img src="/url" alt="*foo* bar" title="title" /></p>
  199. <h3 id="example-561">Example 561</h3>
  200. <p>![[foo561]]</p>
  201. <p>[[foo561]]: /url &quot;title&quot;</p>
  202. <h3 id="example-562">Example 562</h3>
  203. <p><img src="/url" alt="Foo" title="title" /></p>
  204. <h3 id="example-563">Example 563</h3>
  205. <p>![foo]</p>
  206. <h3 id="example-564">Example 564</h3>
  207. <p>!<a href="/url" title="title">foo</a></p>