mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-03 22:25:53 +00:00
66 lines
1.3 KiB
Markdown
66 lines
1.3 KiB
Markdown
```
|
|
% 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" , "" )
|
|
]
|
|
]
|
|
|
|
```
|