I actually figured out I can do this by wrapping the entire section in a fenced div of class "mc" and then use the .mc > ol > li selector to apply the style I want. I still would like to know whether the question as I asked it is possible in the markdown, though it looks like it's not based on my reading. It seems only headers and fences have the ability to add custom attributes.

On Sun, Jun 3, 2018 at 5:58 AM, David Griswold <novachild-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
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@googlegroups.com.
To post to this group, send email to pandoc-discuss@googlegroups.com.
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.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAJ1Dfe1o%2By0Ze0ShGmBu0KGM59ucAY%2BqfrP-_JaPhnMGO5wfzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.