diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/markdown-reader-more.native | 8 | ||||
-rw-r--r-- | tests/markdown-reader-more.txt | 14 |
2 files changed, 21 insertions, 1 deletions
diff --git a/tests/markdown-reader-more.native b/tests/markdown-reader-more.native index 56cf60c82..a07542075 100644 --- a/tests/markdown-reader-more.native +++ b/tests/markdown-reader-more.native @@ -57,4 +57,10 @@ ,[Plain [Str "two"]]] ,OrderedList (1,LowerAlpha,Period) [[Plain [Str "one"]] - ,[Plain [Str "two"]]]] + ,[Plain [Str "two"]]] +,Header 2 [Str "Implicit",Space,Str "header",Space,Str "references"] +,Header 3 [Str "My",Space,Str "header"] +,Header 3 [Str "My",Space,Str "other",Space,Str "header"] +,Para [Str "A",Space,Str "link",Space,Str "to",Space,Link [Str "My",Space,Str "header"] ("#my-header",""),Str "."] +,Para [Str "Another",Space,Str "link",Space,Str "to",Space,Link [Str "it"] ("#my-header",""),Str "."] +,Para [Str "But",Space,Str "this",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "link",Space,Str "to",Space,Link [Str "My",Space,Str "other",Space,Str "header"] ("/foo",""),Str ",",Space,Str "since",Space,Str "the",Space,Str "reference",Space,Str "is",Space,Str "defined."]] diff --git a/tests/markdown-reader-more.txt b/tests/markdown-reader-more.txt index b99bb3121..01fcd5952 100644 --- a/tests/markdown-reader-more.txt +++ b/tests/markdown-reader-more.txt @@ -133,3 +133,17 @@ $\tuple{x,y}$ a. one b. two + +## Implicit header references + +### My header + +### My other header + +A link to [My header]. + +Another link to [it][My header]. + +[my other header]: /foo + +But this is not a link to [My other header], since the reference is defined. |