I'm work on creating a set of examples of HTML, JavaScript, and SVG code. Each comes from a single source file, from which I want to produce a web page showing (a) the result of rendering the HTML or SVG or executing the JavaScript; (b) the code itself, viewed as if in a text editor, and (ideally) with syntax highlighting. The best way I can think of doing this involves making two transformations of the source file, running pandoc on each of them, and the combining the outputs, probably by running pandoc a third time with a custom template. I'm wondering if there's any better way? Here's a small example: (1) Original source file:
(2) Intermediate file 1: ```{=html5}
``` (3) Intermediate file 2: ~~~~{.html}
~~~~ (4) Desired final output would be something like this: ...

A Form with a Button

Code to Produce a Form with a Button

<form>
<input id="b1" type="button" value="Apply" title="Button"/>
</form>
... -- 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/736c254f-44fe-49f8-9556-2f4c83c4e5a0n%40googlegroups.com.