summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-01-23 22:13:58 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2022-01-23 22:13:58 -0800
commita9f901cf6b8eebd02fb180cb4197a08b2a1267c2 (patch)
tree64a941f09d6848d095f545a50f8e185168e823c2 /test/command
parent67f2b25c05c3142aca430f46d53f1a9bb83375f6 (diff)
CommonMark reader: fix source position after YAML metadata.
Closes #7863.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/7863.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/command/7863.md b/test/command/7863.md
new file mode 100644
index 000000000..b732e9710
--- /dev/null
+++ b/test/command/7863.md
@@ -0,0 +1,20 @@
+```
+% pandoc -f commonmark+yaml_metadata_block+sourcepos -t native
+---
+key:
+ |
+ value
+...
+
+
+Text
+^D
+[ Div
+ ( "" , [] , [ ( "data-pos" , "8:1-9:1" ) ] )
+ [ Para
+ [ Span
+ ( "" , [] , [ ( "data-pos" , "8:1-8:5" ) ] ) [ Str "Text" ]
+ ]
+ ]
+]
+```