* 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
[parent not found: <a2d5ac43-54f1-46fc-80b9-85f0baa07ddf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Classes for li elements? [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 2018-06-03 20:46 ` Mikolaj Machowski 2 siblings, 0 replies; 11+ messages in thread From: David Griswold @ 2018-06-03 11:16 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 2659 bytes --] 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-/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 > <https://groups.google.com/d/msgid/pandoc-discuss/a2d5ac43-54f1-46fc-80b9-85f0baa07ddf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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-/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/CAJ1Dfe1o%2By0Ze0ShGmBu0KGM59ucAY%2BqfrP-_JaPhnMGO5wfzQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 10721 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Classes for li elements? [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 20:46 ` Mikolaj Machowski 2 siblings, 1 reply; 11+ messages in thread From: Christophe Demko @ 2018-06-03 15:03 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1605 bytes --] You can also add classes to span 1. [Question]{.question} is valid Le dimanche 3 juin 2018 12:58:41 UTC+2, David Griswold a écrit : > > 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/c5388acd-cabd-4adc-9729-fd33d46191ed%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 5231 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <c5388acd-cabd-4adc-9729-fd33d46191ed-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Classes for li elements? [not found] ` <c5388acd-cabd-4adc-9729-fd33d46191ed-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-06-03 18:20 ` David Griswold 0 siblings, 0 replies; 11+ messages in thread From: David Griswold @ 2018-06-03 18:20 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 3436 bytes --] I tried that but I couldn't get the span to encompass multiple paragraphs, which is is what I would need to get page-break-inside to do what I need. Plus there's the fact that some of my questions contain multiple paragraphs, so inline elements just don't work well. The issue is that markdown doesn't have a good way to specify the difference between the beginning of the "ol" elements and the "li" element that I'm aware of so I can't put the a div inside the <li> that I could see. This works okay (it doesn't add the class to the li element directly as I envisioned, but fills it with a div which is a close next best option, and seems to work okay for the page breaking). 1. <div class="question">Question 1 A. A1 B. B1 C. C1 </div> 2. <div class="question">Question 2 A. A1 B. B1 C. C1 </div> But I can't figure out any equivalent method using fenced divs, which I would prefer just for markdown prettiness. On Jun 3, 2018 10:03 AM, "Christophe Demko" <chdemko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: You can also add classes to span 1. [Question]{.question} is valid Le dimanche 3 juin 2018 12:58:41 UTC+2, David Griswold a écrit : > > 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/c5388acd-cabd-4adc-9729-fd33d46191ed%40googlegroups.com <https://groups.google.com/d/msgid/pandoc-discuss/c5388acd-cabd-4adc-9729-fd33d46191ed%40googlegroups.com?utm_medium=email&utm_source=footer> . 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-/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/CAJ1Dfe1cd1S91gzOz_2-49jiGZzWzDuMzLmyG3J5B_%2BLJ1q-sQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 10694 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Classes for li elements? [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 @ 2018-06-03 20:46 ` Mikolaj Machowski [not found] ` <e766b881-e368-4aeb-9b1e-1ec0a8d6a611-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2 siblings, 1 reply; 11+ messages in thread From: Mikolaj Machowski @ 2018-06-03 20:46 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 686 bytes --] What about: Test 1. \ ::: {#special .sidebar} 1. Here is par. 2. Another ::: 2. Test 2 Last one -- 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/e766b881-e368-4aeb-9b1e-1ec0a8d6a611%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1223 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <e766b881-e368-4aeb-9b1e-1ec0a8d6a611-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Classes for li elements? [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 2 siblings, 0 replies; 11+ messages in thread From: Mikolaj Machowski @ 2018-06-03 20:47 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 821 bytes --] Note that there is space after \ On Sunday, June 3, 2018 at 10:46:22 PM UTC+2, Mikolaj Machowski wrote: > > What about: > > Test > > 1. \ > > ::: {#special .sidebar} > 1. Here is par. > > 2. Another > ::: > > 2. Test 2 > > Last one > > -- 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/ac313a02-646e-47d2-b297-3da269f2957d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1483 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Classes for li elements? [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 2 siblings, 0 replies; 11+ messages in thread From: David Griswold @ 2018-06-03 21:30 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 3175 bytes --] That will probably create the div, but I'm afraid the non breaking space might make the page-break styles have fairly unpredictable effects. Specifically I wonder if setting "page-break-before: auto" on those divs might not result in occasionally having the number of the list on one page and all of the content on the next. I'm worried that would happen with my solutions too. I really need a way to select the ol tag specifically, not just a div inside it. Oh well. I've solved the problem for myself but chalk this up as another possible argument for finding a way to do attributes for as many things as possible, including both the ul/ol tags and li tags (somehow). On Sun, Jun 3, 2018, 3:46 PM Mikolaj Machowski <mikmach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > What about: > > Test > > 1. \ > > ::: {#special .sidebar} > 1. Here is par. > > 2. Another > ::: > > 2. Test 2 > > Last one > > -- > 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/e766b881-e368-4aeb-9b1e-1ec0a8d6a611%40googlegroups.com > <https://groups.google.com/d/msgid/pandoc-discuss/e766b881-e368-4aeb-9b1e-1ec0a8d6a611%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > On Jun 3, 2018 3:46 PM, "Mikolaj Machowski" <mikmach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: What about: Test 1. \ ::: {#special .sidebar} 1. Here is par. 2. Another ::: 2. Test 2 Last one -- 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/e766b881-e368-4aeb-9b1e-1ec0a8d6a611%40googlegroups.com <https://groups.google.com/d/msgid/pandoc-discuss/e766b881-e368-4aeb-9b1e-1ec0a8d6a611%40googlegroups.com?utm_medium=email&utm_source=footer> . 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-/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/CAJ1Dfe0u_JvTM1jNjprZqoDjgTnkVzDt18-Uai9OWD86jr0YSg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 5283 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Classes for li elements? [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> 2 siblings, 1 reply; 11+ messages in thread From: John MacFarlane @ 2018-06-04 16:53 UTC (permalink / raw) To: Mikolaj Machowski, pandoc-discuss You should be able to do this: 1. ::: {#special .sidebar} 1. here is par. 2. another ::: 2. Test 2 Mikolaj Machowski <mikmach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > What about: > > Test > > 1. \ > > ::: {#special .sidebar} > 1. Here is par. > > 2. Another > ::: > > 2. Test 2 > > Last one > > -- > 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/e766b881-e368-4aeb-9b1e-1ec0a8d6a611%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <yh480kvaay7atl.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>]
* Re: Classes for li elements? [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> 0 siblings, 1 reply; 11+ messages in thread From: David Griswold @ 2018-06-04 17:43 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 2376 bytes --] I could have sworn I tried that, but apparently not. It works. Thanks! I think that's more clean than the solution I had. On Mon, Jun 4, 2018 at 11:53 AM, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote: > > You should be able to do this: > > 1. ::: {#special .sidebar} > 1. here is par. > > 2. another > ::: > > 2. Test 2 > > > Mikolaj Machowski <mikmach-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > > > What about: > > > > Test > > > > 1. \ > > > > ::: {#special .sidebar} > > 1. Here is par. > > > > 2. Another > > ::: > > > > 2. Test 2 > > > > Last one > > > > -- > > 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/e766b881-e368-4aeb-9b1e-1ec0a8d6a611% > 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-/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/yh480kvaay7atl.fsf%40johnmacfarlane.net. > 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-/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/CAJ1Dfe2EsENXVUxm82ZgRVqjgODtVrrHC5K2UbhX4itAWZay8A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 4111 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <CAJ1Dfe2EsENXVUxm82ZgRVqjgODtVrrHC5K2UbhX4itAWZay8A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Classes for li elements? [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> 0 siblings, 1 reply; 11+ messages in thread From: David Griswold @ 2018-06-06 2:23 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 2387 bytes --] Okay, after implementing this in my tool, I got an interesting bug (at least I think it's a bug). I'm combining several techniques to get the output I want, so here's an example of my markdown since I'm not certain where the issue arises, though I'm pretty sure it's this div idea. 1. ::::::{.question} Consider the class Navvy below: ``` public class Navvy { private int myIsoniazids, myOutcharge; /*more code */ } ``` In the class `Navvy`, which of the following are reserved words? ::::: {.moreIndented custom-style='moreIndented'} I. `jellifies` II. `int` III. `tissular` ::::: A. II only B. III only C. I and III D. I and II E. I, II and III :::::: :::::{custom-style='BreakAllowed'} ::::: This looks great, and exactly like what I want, on HTML output . A single (long) multiple-choice question, marked with number 2. But the docx output breaks - it looks like this: <https://lh3.googleusercontent.com/-hQkaFVV1qrg/WxdEapbVlII/AAAAAAAA0qY/nlDXCypRs8EVAhd-ihYGXrqkxTLnwIhPgCLcBGAs/s1600/2018-06-05_21-11-33.jpg> It seems that the "question" div is somehow confusing something in the docx output, and it's failing to recognize that the three paragraphs are all part of the same list item. I've attached the docx as well. It's styled with my own personal reference docx, but I tried the default one and got the same result in terms of the numbering. I don't even need that div for the word output - I'm using another workaround for word, that "BreakAllowed" paragraph - so I could probably get around this with a filter (or just go back to my old solution), but it's odd to me that this breaks and I thought it was worth pointing out! David -- 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/96a24578-9b57-4cb7-8bcb-8b38df5fee01%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 4709 bytes --] [-- Attachment #2: Testing_markdown_conversion-1528251396726.docx --] [-- Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document, Size: 13007 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <96a24578-9b57-4cb7-8bcb-8b38df5fee01-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Classes for li elements? [not found] ` <96a24578-9b57-4cb7-8bcb-8b38df5fee01-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-06-06 22:10 ` John MacFarlane 0 siblings, 0 replies; 11+ messages in thread From: John MacFarlane @ 2018-06-06 22:10 UTC (permalink / raw) To: David Griswold, pandoc-discuss Looks like an issue with the docx writer. Perhaps you could report this on the github bug tracker? David Griswold <novachild-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > Okay, after implementing this in my tool, I got an interesting bug (at > least I think it's a bug). I'm combining several techniques to get the > output I want, so here's an example of my markdown since I'm not certain > where the issue arises, though I'm pretty sure it's this div idea. > 1. ::::::{.question} > Consider the class Navvy below: > > ``` > public class Navvy > { > private int myIsoniazids, myOutcharge; > > /*more code */ > } > > ``` > > In the class `Navvy`, which of the following are reserved words? > > ::::: {.moreIndented custom-style='moreIndented'} > I. `jellifies` > II. `int` > III. `tissular` > ::::: > > A. II only > B. III only > C. I and III > D. I and II > E. I, II and III > > :::::: > > :::::{custom-style='BreakAllowed'} > > ::::: > > This looks great, and exactly like what I want, on HTML output . A single > (long) multiple-choice question, marked with number 2. But the docx output > breaks - it looks like this: > > <https://lh3.googleusercontent.com/-hQkaFVV1qrg/WxdEapbVlII/AAAAAAAA0qY/nlDXCypRs8EVAhd-ihYGXrqkxTLnwIhPgCLcBGAs/s1600/2018-06-05_21-11-33.jpg> > > It seems that the "question" div is somehow confusing something in the docx > output, and it's failing to recognize that the three paragraphs are all > part of the same list item. I've attached the docx as well. It's styled > with my own personal reference docx, but I tried the default one and got > the same result in terms of the numbering. I don't even need that div for > the word output - I'm using another workaround for word, that > "BreakAllowed" paragraph - so I could probably get around this with a > filter (or just go back to my old solution), but it's odd to me that this > breaks and I thought it was worth pointing out! > > David > > -- > 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/96a24578-9b57-4cb7-8bcb-8b38df5fee01%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. ^ 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).