Greetings,

I am working on an application that uses markdown and supports code blocks. We also let users mark fragments of code blocks as if with a yellow marker.

We currently have a lua filter that does the marking, but it does not work in combination with syntax highlighting. It never returns the CodeBlock and so the highlighter is never called. I have determined that in order to make the two work together, I need to take the following steps:

- determine where the marking is supposed to go
- remove the [mark] tags and send the code block to the highlighter
- insert the marking in the resulting highlighted code.

However, I have not found a way to access highlighted code, or call the highlighter, from a lua filter. Is there a way to do that or is my plan doomed to failure?

I am also open to other suggestions.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/88f14d06-7079-4330-a7ad-a9a3d9b0e4c8n%40googlegroups.com.