public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Comments within a list
@ 2021-08-20 18:11 Joseph Reagle
       [not found] ` <f554871e-a51e-5c58-502d-611a97ca95fd-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Joseph Reagle @ 2021-08-20 18:11 UTC (permalink / raw)
  To: pandoc-discuss

I know [comments are a hack][1] to end lists, but I sometimes comment an item that isn't relevant -- but I might want to come back to. However, I'm not sure why having a comment in a list means that each <li> gets a <p> child...? That makes my lists ugly with extra spacing between the items.

```
- this is top 1
     - this is sub 1.1
     - this is sub 1.2
     <!-- - going to think about 1.3 for a bit -->
     - this is sub 1.4
- this is top 2
     - this is sub 2.1
     - this is sub 2.2
     - this is sub 2.3
```

yields (with --strip-comments)

```
     <ul>
       <li>this is top 1
         <ul>
           <li><p>this is sub 1.1</p></li>
           <li><p>this is sub 1.2</p></li>
           <li><p>this is sub 1.3</p></li>
         </ul>
       </li>
       <li>this is top 2
         <ul>
           <li>this is sub 2.1</li>
           <li>this is sub 2.2</li>
           <li>this is sub 2.3</li>
         </ul>
       </li>
     </ul>
```

[1]: https://pandoc.org/MANUAL.html#ending-a-list

-- 
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/f554871e-a51e-5c58-502d-611a97ca95fd%40reagle.org.


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

end of thread, other threads:[~2021-08-23 14:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-20 18:11 Comments within a list Joseph Reagle
     [not found] ` <f554871e-a51e-5c58-502d-611a97ca95fd-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2021-08-20 18:40   ` Daniel Staal
     [not found]     ` <69e1034f-6462-61d9-45f9-3af2c9fd2a97-Jdbf3xiKgS8@public.gmane.org>
2021-08-20 18:55       ` Joseph Reagle
     [not found]         ` <decd3c8a-41f7-bcf2-addf-3e226cfc0896-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2021-08-20 19:03           ` William Lupton
     [not found]             ` <CAEe_xxg0N37nDD4kD5UfKcJOQM6xfRPVx69cTho=11mhYxWKCQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-08-20 19:38               ` Joseph Reagle
2021-08-20 19:52   ` John MacFarlane
     [not found]     ` <yh480k35r3x5a1.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2021-08-20 21:03       ` Joseph Reagle
     [not found]         ` <e48f774d-2904-7c9f-1d8f-b21fca3977e8-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2021-08-20 21:59           ` John MacFarlane
     [not found]             ` <yh480kmtpbvku5.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2021-08-23 14:03               ` Joseph Reagle

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