public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Simon Michael <simon-jbxitMBJ2LLQT0dZR+AlfA@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: lua filter to process github wiki links ?
Date: Fri, 8 Feb 2019 07:47:46 -0800	[thread overview]
Message-ID: <E4517694-C440-4902-9EBC-9413F199BCE5@joyful.com> (raw)

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.


             reply	other threads:[~2019-02-08 15:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-08 15:47 Simon Michael [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E4517694-C440-4902-9EBC-9413F199BCE5@joyful.com \
    --to=simon-jbxitmbj2llqt0dzr+alfa@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).