Following up on another question I would like to add a few modifications to the ConTeXt writer that comes with Pandoc. It was suggested that I use lua-filters instead of trying to customize the ConTeXt writer for the problem in the aforementioned question and that worked fine. However, I suspect, filters won't be of much help with the following (but do correct me, if I'm wrong)...
In particular, I would like to modify the way Pandoc's built-in ConTeXt writer handles some of the markup. E.g., converting from something like *italic* in Markdown results in {\em italic} in ConTeXt, by using a command like pandoc -t context <markdownfile>.md -o <contextfile>.tex. This isn't exactly wrong, but should ideally be written as \emph{italic}.
How would I approach the problem of creating a custom ConTeXt writer for Pandoc, without having to build the whole thing from scratch? My question from my previous post still applies here: If I understood correctly, I'm supposed to base my custom writer on the standard (built-in) writers... But where can I find these? There doesn't seem to be anything in /usr/share/pandoc/(I'm working on Linux).
Any help would be much appreciated.