mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-04 14:45:50 +00:00
Once upon a time the only metadata element for links in Pandoc's AST was a title, and it was hijacked to track certain links as having originated in the wikilink syntax. Now we have Attrs and we can use a class to handle wikilinks instead. Requires coordinated changes to commonmark-hs.
7 lines
181 B
Markdown
7 lines
181 B
Markdown
```
|
|
% pandoc -f markdown+wikilinks_title_after_pipe --wrap=none
|
|
[[hi]] and ![[hi]]
|
|
^D
|
|
<p><a href="hi" class="wikilink">hi</a> and <img src="hi" class="wikilink" alt="hi" /></p>
|
|
```
|