mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 11:57:16 +00:00
76cd115d3b
Closes #9171.
1.3 KiB
1.3 KiB
% 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" , "" )
]
]