summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-02-21 19:53:35 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-02-21 19:53:35 -0800
commit07e8cedf2bddcbf13bfd69a415107b2a9aa074aa (patch)
treed9e045913e7baee9a724fa8adb8e0ff4a4a5aef8 /tests
parent7a97369d011cdbdac52a2e0df6bcbba078852a57 (diff)
Make `implicit_header_references` work with explicit header ids.
(Markdown reader.)
Diffstat (limited to 'tests')
-rw-r--r--tests/markdown-reader-more.native5
-rw-r--r--tests/markdown-reader-more.txt2
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/markdown-reader-more.native b/tests/markdown-reader-more.native
index 84d3a71e2..612358522 100644
--- a/tests/markdown-reader-more.native
+++ b/tests/markdown-reader-more.native
@@ -61,8 +61,9 @@
,Header 2 ("implicit-header-references",[],[]) [Str "Implicit",Space,Str "header",Space,Str "references"]
,Header 3 ("my-header-1",[],[]) [Str "My",Space,Str "header"]
,Header 3 ("my-other-header",[],[]) [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 "A",Space,Str "link",Space,Str "to",Space,Link [Str "My",Space,Str "header"] ("#my-header-1",""),Str "."]
+,Para [Str "Another",Space,Str "link",Space,Str "to",Space,Link [Str "it"] ("#my-header-1",""),Str "."]
+,Para [Str "Link",Space,Str "to",Space,Link [Str "Explicit",Space,Str "header",Space,Str "attributes"] ("#foobar",""),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."]
,Header 2 ("foobar",["baz"],[("key","val")]) [Str "Explicit",Space,Str "header",Space,Str "attributes"]
,Header 2 ("line-blocks",[],[]) [Str "Line",Space,Str "blocks"]
diff --git a/tests/markdown-reader-more.txt b/tests/markdown-reader-more.txt
index b0a4ff6e8..cf5e930e1 100644
--- a/tests/markdown-reader-more.txt
+++ b/tests/markdown-reader-more.txt
@@ -144,6 +144,8 @@ A link to [My header].
Another link to [it][My header].
+Link to [Explicit header attributes].
+
[my other header]: /foo
But this is not a link to [My other header], since the reference is defined.