|
| 1 | +``` |
| 2 | +% pandoc -f markdown -t native |
| 3 | +[link][link contents]{target="_blank"} |
| 4 | +[link2](https://example.com){target="_blank"} |
| 5 | +
|
| 6 | +[link contents]: https://example.com |
| 7 | +^D |
| 8 | +[ Para |
| 9 | + [ Link |
| 10 | + ( "" , [] , [ ( "target" , "_blank" ) ] ) |
| 11 | + [ Str "link" ] |
| 12 | + ( "https://example.com" , "" ) |
| 13 | + , SoftBreak |
| 14 | + , Link |
| 15 | + ( "" , [] , [ ( "target" , "_blank" ) ] ) |
| 16 | + [ Str "link2" ] |
| 17 | + ( "https://example.com" , "" ) |
| 18 | + ] |
| 19 | +] |
| 20 | +
|
| 21 | +``` |
| 22 | + |
| 23 | +``` |
| 24 | +% pandoc -f markdown -t native |
| 25 | +[link][link contents]{#id1 target="_blank"} |
| 26 | +[link2](https://example.com){target="_blank"} |
| 27 | +
|
| 28 | +[link contents]: https://example.com {#id2 target="_nonblank"} |
| 29 | +^D |
| 30 | +[ Para |
| 31 | + [ Link |
| 32 | + ( "id1" , [] , [ ( "target" , "_blank" ) ] ) |
| 33 | + [ Str "link" ] |
| 34 | + ( "https://example.com" , "" ) |
| 35 | + , SoftBreak |
| 36 | + , Link |
| 37 | + ( "" , [] , [ ( "target" , "_blank" ) ] ) |
| 38 | + [ Str "link2" ] |
| 39 | + ( "https://example.com" , "" ) |
| 40 | + ] |
| 41 | +] |
| 42 | +
|
| 43 | +``` |
| 44 | + |
| 45 | +``` |
| 46 | +% pandoc -f markdown -t native |
| 47 | +[link][link contents]{target="_blank"} |
| 48 | +[link2](https://example.com){target="_blank"} |
| 49 | +
|
| 50 | +[link contents]: https://example.com {.foo} |
| 51 | +^D |
| 52 | +[ Para |
| 53 | + [ Link |
| 54 | + ( "" , [ "foo" ] , [ ( "target" , "_blank" ) ] ) |
| 55 | + [ Str "link" ] |
| 56 | + ( "https://example.com" , "" ) |
| 57 | + , SoftBreak |
| 58 | + , Link |
| 59 | + ( "" , [] , [ ( "target" , "_blank" ) ] ) |
| 60 | + [ Str "link2" ] |
| 61 | + ( "https://example.com" , "" ) |
| 62 | + ] |
| 63 | +] |
| 64 | +
|
| 65 | +``` |
0 commit comments