summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
Diffstat (limited to 'test/command')
-rw-r--r--test/command/9171.md65
1 files changed, 65 insertions, 0 deletions
diff --git a/test/command/9171.md b/test/command/9171.md
new file mode 100644
index 000000000..ede24e320
--- /dev/null
+++ b/test/command/9171.md
@@ -0,0 +1,65 @@
+```
+% pandoc -f markdown -t native
+[link][link contents]{target="_blank"}
+[link2](https://example.com){target="_blank"}
+
+[link contents]: https://example.com
+^D
+[ Para
+ [ Link
+ ( "" , [] , [ ( "target" , "_blank" ) ] )
+ [ Str "link" ]
+ ( "https://example.com" , "" )
+ , SoftBreak
+ , Link
+ ( "" , [] , [ ( "target" , "_blank" ) ] )
+ [ Str "link2" ]
+ ( "https://example.com" , "" )
+ ]
+]
+
+```
+
+```
+% pandoc -f markdown -t native
+[link][link contents]{#id1 target="_blank"}
+[link2](https://example.com){target="_blank"}
+
+[link contents]: https://example.com {#id2 target="_nonblank"}
+^D
+[ Para
+ [ Link
+ ( "id1" , [] , [ ( "target" , "_blank" ) ] )
+ [ Str "link" ]
+ ( "https://example.com" , "" )
+ , SoftBreak
+ , Link
+ ( "" , [] , [ ( "target" , "_blank" ) ] )
+ [ Str "link2" ]
+ ( "https://example.com" , "" )
+ ]
+]
+
+```
+
+```
+% pandoc -f markdown -t native
+[link][link contents]{target="_blank"}
+[link2](https://example.com){target="_blank"}
+
+[link contents]: https://example.com {.foo}
+^D
+[ Para
+ [ Link
+ ( "" , [ "foo" ] , [ ( "target" , "_blank" ) ] )
+ [ Str "link" ]
+ ( "https://example.com" , "" )
+ , SoftBreak
+ , Link
+ ( "" , [] , [ ( "target" , "_blank" ) ] )
+ [ Str "link2" ]
+ ( "https://example.com" , "" )
+ ]
+]
+
+```