links.unit 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  1. >>> Links - 482
  2. [link](/uri "title")
  3. <<<
  4. <p><a href="/uri" title="title">link</a></p>
  5. >>> Links - 483
  6. [link](/uri)
  7. <<<
  8. <p><a href="/uri">link</a></p>
  9. >>> Links - 484
  10. [](./target.md)
  11. <<<
  12. <p><a href="./target.md"></a></p>
  13. >>> Links - 485
  14. [link]()
  15. <<<
  16. <p><a href="">link</a></p>
  17. >>> Links - 486
  18. [link](<>)
  19. <<<
  20. <p><a href="">link</a></p>
  21. >>> Links - 487
  22. []()
  23. <<<
  24. <p><a href=""></a></p>
  25. >>> Links - 488
  26. [link](/my uri)
  27. <<<
  28. <p>[link](/my uri)</p>
  29. >>> Links - 489
  30. [link](</my uri>)
  31. <<<
  32. <p><a href="/my%20uri">link</a></p>
  33. >>> Links - 490
  34. [link](foo
  35. bar)
  36. <<<
  37. <p>[link](foo
  38. bar)</p>
  39. >>> Links - 491
  40. [link](<foo
  41. bar>)
  42. <<<
  43. <p>[link](<foo
  44. bar>)</p>
  45. >>> Links - 492
  46. [a](<b)c>)
  47. <<<
  48. <p><a href="b)c">a</a></p>
  49. >>> Links - 493
  50. [link](<foo\>)
  51. <<<
  52. <p>[link](&lt;foo&gt;)</p>
  53. >>> Links - 494
  54. [a](<b)c
  55. [a](<b)c>
  56. [a](<b>c)
  57. <<<
  58. <p>[a](&lt;b)c
  59. [a](&lt;b)c&gt;
  60. [a](<b>c)</p>
  61. >>> Links - 495
  62. [link](\(foo\))
  63. <<<
  64. <p><a href="(foo)">link</a></p>
  65. >>> Links - 496
  66. [link](foo(and(bar)))
  67. <<<
  68. <p><a href="foo(and(bar))">link</a></p>
  69. >>> Links - 497
  70. [link](foo(and(bar))
  71. <<<
  72. <p>[link](foo(and(bar))</p>
  73. >>> Links - 498
  74. [link](foo\(and\(bar\))
  75. <<<
  76. <p><a href="foo(and(bar)">link</a></p>
  77. >>> Links - 499
  78. [link](<foo(and(bar)>)
  79. <<<
  80. <p><a href="foo(and(bar)">link</a></p>
  81. >>> Links - 500
  82. [link](foo\)\:)
  83. <<<
  84. <p><a href="foo):">link</a></p>
  85. >>> Links - 501
  86. [link](#fragment)
  87. [link](https://example.com#fragment)
  88. [link](https://example.com?foo=3#frag)
  89. <<<
  90. <p><a href="#fragment">link</a></p>
  91. <p><a href="https://example.com#fragment">link</a></p>
  92. <p><a href="https://example.com?foo=3#frag">link</a></p>
  93. >>> Links - 502
  94. [link](foo\bar)
  95. <<<
  96. <p><a href="foo%5Cbar">link</a></p>
  97. >>> Links - 503
  98. [link](foo%20b&auml;)
  99. <<<
  100. <p><a href="foo%20b%C3%A4">link</a></p>
  101. >>> Links - 504
  102. [link]("title")
  103. <<<
  104. <p><a href="%22title%22">link</a></p>
  105. >>> Links - 505
  106. [link](/url "title")
  107. [link](/url 'title')
  108. [link](/url (title))
  109. <<<
  110. <p><a href="/url" title="title">link</a>
  111. <a href="/url" title="title">link</a>
  112. <a href="/url" title="title">link</a></p>
  113. >>> Links - 506
  114. [link](/url "title \"&quot;")
  115. <<<
  116. <p><a href="/url" title="title &quot;&quot;">link</a></p>
  117. >>> Links - 507
  118. [link](/url "title")
  119. <<<
  120. <p><a href="/url%C2%A0%22title%22">link</a></p>
  121. >>> Links - 508
  122. [link](/url "title "and" title")
  123. <<<
  124. <p>[link](/url &quot;title &quot;and&quot; title&quot;)</p>
  125. >>> Links - 509
  126. [link](/url 'title "and" title')
  127. <<<
  128. <p><a href="/url" title="title &quot;and&quot; title">link</a></p>
  129. >>> Links - 510
  130. [link]( /uri
  131. "title" )
  132. <<<
  133. <p><a href="/uri" title="title">link</a></p>
  134. >>> Links - 511
  135. [link] (/uri)
  136. <<<
  137. <p>[link] (/uri)</p>
  138. >>> Links - 512
  139. [link [foo [bar]]](/uri)
  140. <<<
  141. <p><a href="/uri">link [foo [bar]]</a></p>
  142. >>> Links - 513
  143. [link] bar](/uri)
  144. <<<
  145. <p>[link] bar](/uri)</p>
  146. >>> Links - 514
  147. [link [bar](/uri)
  148. <<<
  149. <p>[link <a href="/uri">bar</a></p>
  150. >>> Links - 515
  151. [link \[bar](/uri)
  152. <<<
  153. <p><a href="/uri">link [bar</a></p>
  154. >>> Links - 516
  155. [link *foo **bar** `#`*](/uri)
  156. <<<
  157. <p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>
  158. >>> Links - 517
  159. [![moon](moon.jpg)](/uri)
  160. <<<
  161. <p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p>
  162. >>> Links - 518
  163. [foo [bar](/uri)](/uri)
  164. <<<
  165. <p>[foo <a href="/uri">bar</a>](/uri)</p>
  166. >>> Links - 519
  167. [foo *[bar [baz](/uri)](/uri)*](/uri)
  168. <<<
  169. <p>[foo <em>[bar <a href="/uri">baz</a>](/uri)</em>](/uri)</p>
  170. >>> Links - 520
  171. ![[[foo](uri1)](uri2)](uri3)
  172. <<<
  173. <p><img src="uri3" alt="[foo](uri2)" /></p>
  174. >>> Links - 521
  175. *[foo*](/uri)
  176. <<<
  177. <p>*<a href="/uri">foo*</a></p>
  178. >>> Links - 522
  179. [foo *bar](baz*)
  180. <<<
  181. <p><a href="baz*">foo *bar</a></p>
  182. >>> Links - 523
  183. *foo [bar* baz]
  184. <<<
  185. <p><em>foo [bar</em> baz]</p>
  186. >>> Links - 524
  187. [foo <bar attr="](baz)">
  188. <<<
  189. <p>[foo <bar attr="](baz)"></p>
  190. >>> Links - 525
  191. [foo`](/uri)`
  192. <<<
  193. <p>[foo<code>](/uri)</code></p>
  194. >>> Links - 526
  195. [foo<https://example.com/?search=](uri)>
  196. <<<
  197. <p>[foo<a href="https://example.com/?search=%5D(uri)">https://example.com/?search=](uri)</a></p>
  198. >>> Links - 527
  199. [foo][bar]
  200. [bar]: /url "title"
  201. <<<
  202. <p><a href="/url" title="title">foo</a></p>
  203. >>> Links - 528
  204. [link [foo [bar]]][ref]
  205. [ref]: /uri
  206. <<<
  207. <p><a href="/uri">link [foo [bar]]</a></p>
  208. >>> Links - 529
  209. [link \[bar][ref]
  210. [ref]: /uri
  211. <<<
  212. <p><a href="/uri">link [bar</a></p>
  213. >>> Links - 530
  214. [link *foo **bar** `#`*][ref]
  215. [ref]: /uri
  216. <<<
  217. <p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>
  218. >>> Links - 531
  219. [![moon](moon.jpg)][ref]
  220. [ref]: /uri
  221. <<<
  222. <p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p>
  223. >>> Links - 532
  224. [foo [bar](/uri)][ref]
  225. [ref]: /uri
  226. <<<
  227. <p>[foo <a href="/uri">bar</a>]<a href="/uri">ref</a></p>
  228. >>> Links - 533
  229. [foo *bar [baz][ref]*][ref]
  230. [ref]: /uri
  231. <<<
  232. <p>[foo <em>bar <a href="/uri">baz</a></em>]<a href="/uri">ref</a></p>
  233. >>> Links - 534
  234. *[foo*][ref]
  235. [ref]: /uri
  236. <<<
  237. <p>*<a href="/uri">foo*</a></p>
  238. >>> Links - 535
  239. [foo *bar][ref]*
  240. [ref]: /uri
  241. <<<
  242. <p><a href="/uri">foo *bar</a>*</p>
  243. >>> Links - 536
  244. [foo <bar attr="][ref]">
  245. [ref]: /uri
  246. <<<
  247. <p>[foo <bar attr="][ref]"></p>
  248. >>> Links - 537
  249. [foo`][ref]`
  250. [ref]: /uri
  251. <<<
  252. <p>[foo<code>][ref]</code></p>
  253. >>> Links - 538
  254. [foo<https://example.com/?search=][ref]>
  255. [ref]: /uri
  256. <<<
  257. <p>[foo<a href="https://example.com/?search=%5D%5Bref%5D">https://example.com/?search=][ref]</a></p>
  258. >>> Links - 539
  259. [foo][BaR]
  260. [bar]: /url "title"
  261. <<<
  262. <p><a href="/url" title="title">foo</a></p>
  263. >>> Links - 540
  264. [ẞ]
  265. [SS]: /url
  266. <<<
  267. <p><a href="/url">ẞ</a></p>
  268. >>> Links - 541
  269. [Foo
  270. bar]: /url
  271. [Baz][Foo bar]
  272. <<<
  273. <p><a href="/url">Baz</a></p>
  274. >>> Links - 542
  275. [foo] [bar]
  276. [bar]: /url "title"
  277. <<<
  278. <p>[foo] <a href="/url" title="title">bar</a></p>
  279. >>> Links - 543
  280. [foo]
  281. [bar]
  282. [bar]: /url "title"
  283. <<<
  284. <p>[foo]
  285. <a href="/url" title="title">bar</a></p>
  286. >>> Links - 544
  287. [foo]: /url1
  288. [foo]: /url2
  289. [bar][foo]
  290. <<<
  291. <p><a href="/url1">bar</a></p>
  292. >>> Links - 545
  293. [bar][foo\!]
  294. [foo!]: /url
  295. <<<
  296. <p>[bar][foo!]</p>
  297. >>> Links - 546
  298. [foo][ref[]
  299. [ref[]: /uri
  300. <<<
  301. <p>[foo][ref[]</p>
  302. <p>[ref[]: /uri</p>
  303. >>> Links - 547
  304. [foo][ref[bar]]
  305. [ref[bar]]: /uri
  306. <<<
  307. <p>[foo][ref[bar]]</p>
  308. <p>[ref[bar]]: /uri</p>
  309. >>> Links - 548
  310. [[[foo]]]
  311. [[[foo]]]: /url
  312. <<<
  313. <p>[[[foo]]]</p>
  314. <p>[[[foo]]]: /url</p>
  315. >>> Links - 549
  316. [foo][ref\[]
  317. [ref\[]: /uri
  318. <<<
  319. <p><a href="/uri">foo</a></p>
  320. >>> Links - 550
  321. [bar\\]: /uri
  322. [bar\\]
  323. <<<
  324. <p><a href="/uri">bar\</a></p>
  325. >>> Links - 551
  326. []
  327. []: /uri
  328. <<<
  329. <p>[]</p>
  330. <p>[]: /uri</p>
  331. >>> Links - 552
  332. [
  333. ]
  334. [
  335. ]: /uri
  336. <<<
  337. <p>[
  338. ]</p>
  339. <p>[
  340. ]: /uri</p>
  341. >>> Links - 553
  342. [foo][]
  343. [foo]: /url "title"
  344. <<<
  345. <p><a href="/url" title="title">foo</a></p>
  346. >>> Links - 554
  347. [*foo* bar][]
  348. [*foo* bar]: /url "title"
  349. <<<
  350. <p><a href="/url" title="title"><em>foo</em> bar</a></p>
  351. >>> Links - 555
  352. [Foo][]
  353. [foo]: /url "title"
  354. <<<
  355. <p><a href="/url" title="title">Foo</a></p>
  356. >>> Links - 556
  357. [foo]
  358. []
  359. [foo]: /url "title"
  360. <<<
  361. <p><a href="/url" title="title">foo</a>
  362. []</p>
  363. >>> Links - 557
  364. [foo]
  365. [foo]: /url "title"
  366. <<<
  367. <p><a href="/url" title="title">foo</a></p>
  368. >>> Links - 558
  369. [*foo* bar]
  370. [*foo* bar]: /url "title"
  371. <<<
  372. <p><a href="/url" title="title"><em>foo</em> bar</a></p>
  373. >>> Links - 559
  374. [[*foo* bar]]
  375. [*foo* bar]: /url "title"
  376. <<<
  377. <p>[<a href="/url" title="title"><em>foo</em> bar</a>]</p>
  378. >>> Links - 560
  379. [[bar [foo]
  380. [foo]: /url
  381. <<<
  382. <p>[[bar <a href="/url">foo</a></p>
  383. >>> Links - 561
  384. [Foo]
  385. [foo]: /url "title"
  386. <<<
  387. <p><a href="/url" title="title">Foo</a></p>
  388. >>> Links - 562
  389. [foo] bar
  390. [foo]: /url
  391. <<<
  392. <p><a href="/url">foo</a> bar</p>
  393. >>> Links - 563
  394. \[foo]
  395. [foo]: /url "title"
  396. <<<
  397. <p>[foo]</p>
  398. >>> Links - 564
  399. [foo*]: /url
  400. *[foo*]
  401. <<<
  402. <p>*<a href="/url">foo*</a></p>
  403. >>> Links - 565
  404. [foo][bar]
  405. [foo]: /url1
  406. [bar]: /url2
  407. <<<
  408. <p><a href="/url2">foo</a></p>
  409. >>> Links - 566
  410. [foo][]
  411. [foo]: /url1
  412. <<<
  413. <p><a href="/url1">foo</a></p>
  414. >>> Links - 567
  415. [foo]()
  416. [foo]: /url1
  417. <<<
  418. <p><a href="">foo</a></p>
  419. >>> Links - 568
  420. [foo](not a link)
  421. [foo]: /url1
  422. <<<
  423. <p><a href="/url1">foo</a>(not a link)</p>
  424. >>> Links - 569
  425. [foo][bar][baz]
  426. [baz]: /url
  427. <<<
  428. <p>[foo]<a href="/url">bar</a></p>
  429. >>> Links - 570
  430. [foo][bar][baz]
  431. [baz]: /url1
  432. [bar]: /url2
  433. <<<
  434. <p><a href="/url2">foo</a><a href="/url1">baz</a></p>
  435. >>> Links - 571
  436. [foo][bar][baz]
  437. [baz]: /url1
  438. [foo]: /url2
  439. <<<
  440. <p>[foo]<a href="/url1">bar</a></p>