Hi,

I'm in search of something similar to this: https://groups.google.com/forum/#!searchin/pandoc-discuss/conditional%7Csort:date/pandoc-discuss/R00dbPcjYRY/An6ZEYNwAgAJ

But instead, I want a specific output for LaTeX and another for EPUB (which goes through HTML). Basically, something like

$if(outputformat=latex)$
 
\begin{foo}
  some text
 
\end{foo}
$endif$

$if
(outputformat=epub)$
 
<div class="foo">
  some text
 
</div>
$endif$

I had a look into https://pandoc.org/MANUAL.html#extension-raw_attribute but I'm not being able to understand how I can get this working.

Can anyone shed some light on me?

Thanks!

--
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/78a2892d-a12d-4118-b36d-e38994d0a71a%40googlegroups.com.