public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Classes for li elements?
@ 2018-06-03 10:58 David Griswold
       [not found] ` <a2d5ac43-54f1-46fc-80b9-85f0baa07ddf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: David Griswold @ 2018-06-03 10:58 UTC (permalink / raw)
  To: pandoc-discuss


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

I am trying to create a document with a series of multiple choice questions 
like so:

1.  Question
     A. Answer 1
     B. Answer 2
     C. Answer 3

2.  Question 2

...

This is working fine, but I want to add some CSS to help wkhtmltopdf break 
correctly between questions only. To do that, I need some custom classes in 
each question.

Ideally, what I'd like is the html to look like 

<ol type="1">
  <li class="question">
   Question
   <ol type="A">
     <li class="answer">Answer 1</li>
     <li class="answer">Answer 2</li>
   </ol>
   <li class="question">
   Question 2
   <ol type="A">
     <li class="answer">Answer 1</li>
     <li class="answer">Answer 2</li>
   </ol>
 </ol>

Is there any way to do this (or achieve a similar result) directly in the 
markdown? 

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a2d5ac43-54f1-46fc-80b9-85f0baa07ddf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

end of thread, other threads:[~2018-06-06 22:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-03 10:58 Classes for li elements? David Griswold
     [not found] ` <a2d5ac43-54f1-46fc-80b9-85f0baa07ddf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-06-03 11:16   ` David Griswold
2018-06-03 15:03   ` Christophe Demko
     [not found]     ` <c5388acd-cabd-4adc-9729-fd33d46191ed-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-06-03 18:20       ` David Griswold
2018-06-03 20:46   ` Mikolaj Machowski
     [not found]     ` <e766b881-e368-4aeb-9b1e-1ec0a8d6a611-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-06-03 20:47       ` Mikolaj Machowski
2018-06-03 21:30       ` David Griswold
2018-06-04 16:53       ` John MacFarlane
     [not found]         ` <yh480kvaay7atl.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-06-04 17:43           ` David Griswold
     [not found]             ` <CAJ1Dfe2EsENXVUxm82ZgRVqjgODtVrrHC5K2UbhX4itAWZay8A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-06-06  2:23               ` David Griswold
     [not found]                 ` <96a24578-9b57-4cb7-8bcb-8b38df5fee01-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-06-06 22:10                   ` John MacFarlane

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