reference_links.unit 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. >>> double quotes for title
  2. links [are][a] awesome
  3. [a]: http://foo.com "woo"
  4. <<<
  5. <p>links <a href="http://foo.com" title="woo">are</a> awesome</p>
  6. >>> single quoted title
  7. links [are][a] awesome
  8. [a]: http://foo.com 'woo'
  9. <<<
  10. <p>links <a href="http://foo.com" title="woo">are</a> awesome</p>
  11. >>> parentheses for title
  12. links [are][a] awesome
  13. [a]: http://foo.com (woo)
  14. <<<
  15. <p>links <a href="http://foo.com" title="woo">are</a> awesome</p>
  16. >>> no title
  17. links [are][a] awesome
  18. [a]: http://foo.com
  19. <<<
  20. <p>links <a href="http://foo.com">are</a> awesome</p>
  21. >>> unknown link becomes plaintext
  22. [not] [known]
  23. <<<
  24. <p>[not] [known]</p>
  25. >>> can style link contents
  26. links [*are*][a] awesome
  27. [a]: http://foo.com
  28. <<<
  29. <p>links <a href="http://foo.com"><em>are</em></a> awesome</p>
  30. >>> inline styles after a bad link are processed
  31. [bad] `code`
  32. <<<
  33. <p>[bad] <code>code</code></p>
  34. >>> empty reference uses text from link
  35. links [are][] awesome
  36. [are]: http://foo.com
  37. <<<
  38. <p>links <a href="http://foo.com">are</a> awesome</p>
  39. >>> references are case-insensitive
  40. links [ARE][] awesome
  41. [are]: http://foo.com
  42. <<<
  43. <p>links <a href="http://foo.com">ARE</a> awesome</p>
  44. >>> shortcut reference links
  45. links [are] awesome
  46. [are]: http://foo.com
  47. <<<
  48. <p>links <a href="http://foo.com">are</a> awesome</p>
  49. >>> reference definitions can span lines
  50. links [are] [awesome]
  51. [are]:
  52. http://foo.com
  53. [awesome]:
  54. http://bar.com
  55. "Long
  56. Title"
  57. <<<
  58. <p>links <a href="http://foo.com">are</a> <a href="http://bar.com" title="Long
  59. Title">awesome</a></p>
  60. >>> references can be defined in blocks
  61. > links [are] awesome
  62. >
  63. > [are]: http://foo.com
  64. <<<
  65. <blockquote>
  66. <p>links <a href="http://foo.com">are</a> awesome</p>
  67. </blockquote>
  68. >>> reference link regression for github.com/dart-lang/markdown/issues/176
  69. [![Coverage Status][coverage_status]][coverage_page]
  70. [coverage_page]:https://coveralls.io/github/yeradis/stay_points.dart?branch=master
  71. [coverage_status]: https://coveralls.io/repos/github/yeradis/stay_points.dart/badge.svg?branch=master
  72. <<<
  73. <p><a href="https://coveralls.io/github/yeradis/stay_points.dart?branch=master"><img src="https://coveralls.io/repos/github/yeradis/stay_points.dart/badge.svg?branch=master" alt="Coverage Status" /></a></p>
  74. >>> compressed reference link label is normalized
  75. Text [foo
  76. bar][].
  77. [foo bar]: http://bar.com
  78. <<<
  79. <p>Text <a href="http://bar.com">foo
  80. bar</a>.</p>