On 2019-08-21 18:08, Joseph Reagle wrote: > I'm noticing folks building wikis using markdown increasingly adopting the convention [[local link]]. However, gitit uses [local link](). Any chance one of these will be standardized or adopted by Pandoc? > The attached Lua filter kind of does the trick if you want to generate Markdown e.g. for GitHub wikis. It converts three different "syntaxes" into wiki link syntax: Get [[...]] style wiki links in Pandoc Markdown output: [PAGE NAME]() becomes [[PAGE NAME]] (Formatting is lost) [FORMATTED TEXT]{wiki="PAGE NAME"} becomes [[PAGE NAME|FORMATTED TEXT]] `TEXT`{.wiki} becomes [[TEXT]] (Very fast!) $ pandoc --lua-filter wiki-links.lua -w gfm [foo]() [*bar*]{wiki="baz"} `quux`{.wiki} ^D [[foo]] [[baz|*bar*]] [[quux]] -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/93baab2f-5229-5985-2332-aa503eee0b95%40gmail.com.