public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* lua filter to process github wiki links ?
@ 2019-02-08 15:47 Simon Michael
       [not found] ` <c34adce5-1323-03a8-b031-051e78efd355@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Michael @ 2019-02-08 15:47 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi all,

I'm working towards using github wiki as a content management system, but rendering the wiki pages myself for better integration with the rest of the website. Github's wiki links look like [[Page]] or [[Link text|Page]]. I can convert them with sed or haskell, but I'm already using pandoc's excellent lua filter feature, and I'd like to do the wiki linking that way too if feasible. Would anyone have a script for this, or advice on how to tackle it ?

Here's an example link: 

[[Convert CSV files]]  

and native format:

,Para [Str "[[Convert",Space,Str "CSV",Space,Str "files]]"

in which I'm not sure to detect the links robustly.

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/E4517694-C440-4902-9EBC-9413F199BCE5%40joyful.com.
For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-10 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-08 15:47 lua filter to process github wiki links ? Simon Michael
     [not found] ` <c34adce5-1323-03a8-b031-051e78efd355@gmail.com>
     [not found]   ` <c34adce5-1323-03a8-b031-051e78efd355-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-02-10 18:25     ` Simon Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).