public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Conditional markdown parsing?
@ 2019-10-01 23:09 Gabriel Volpe
       [not found] ` <78a2892d-a12d-4118-b36d-e38994d0a71a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Gabriel Volpe @ 2019-10-01 23:09 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1036 bytes --]

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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.

[-- Attachment #1.2: Type: text/html, Size: 4234 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-11-12  1:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-01 23:09 Conditional markdown parsing? Gabriel Volpe
     [not found] ` <78a2892d-a12d-4118-b36d-e38994d0a71a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-01 23:38   ` Gabriel Volpe
2019-10-01 23:38   ` Gabriel Volpe
     [not found]     ` <dbfa5bfc-fba7-4309-abe0-7e432cd13b9b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-01 23:54       ` John MacFarlane
     [not found]         ` <yh480kpnjg10pz.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-10-02  0:57           ` Gabriel Volpe
     [not found]             ` <CAJReL36Vyd-DjWan_q-fc5hOrPHr=K5x34vn8vi3KHWF7qEt7Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-11-11 22:25               ` Gabriel Volpe
     [not found]                 ` <CAJReL340iudWT0DV+CuCyJwr_Go0H0YjcsAeu+tqX6om5Q1XZw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-11-11 22:44                   ` John MacFarlane
     [not found]                     ` <yh480kr22ef2yg.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-11-11 23:00                       ` Gabriel Volpe
     [not found]                         ` <CAJReL35qw5+mgbQunSzi7M_f8sCG=9JuUX39MKvoWA1PrdXeAg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-11-11 23:46                           ` Gabriel Volpe
     [not found]                             ` <CAJReL34JZQGVSaWW=Ye4zh4BxMzwO+NVT-6gOadRjuDicuLypg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-11-11 23:47                               ` Gabriel Volpe
2019-11-12  0:50                           ` John MacFarlane
     [not found]                             ` <yh480ky2wlex3l.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-11-12  1:04                               ` Gabriel Volpe
     [not found]                                 ` <CAJReL34R_VO1g+KeyH5Jex70NCfVqCObv8ib3rfj492htJxNqA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-11-12  1:06                                   ` Gabriel Volpe
     [not found]                                     ` <CAJReL37iMLePBAP0Lwa-dDVfnBZ+8jJ00b79XH8b0Nvyv0eXPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-11-12  1:18                                       ` Gabriel Volpe

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).