public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: Joseph Reagle
	<joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Comments within a list
Date: Fri, 20 Aug 2021 12:52:38 -0700	[thread overview]
Message-ID: <yh480k35r3x5a1.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <f554871e-a51e-5c58-502d-611a97ca95fd-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>


This works:

- 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

You can also try -f commonmark or -f commonmark_x or -f gfm.

That will split 1.4 into a separate list, given the indentation
you have, but you can indent it as above if you don't want that.

Joseph Reagle <joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> writes:

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

-- 
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/yh480k35r3x5a1.fsf%40johnmacfarlane.net.


  parent reply	other threads:[~2021-08-20 19:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-20 18:11 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 [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yh480k35r3x5a1.fsf@johnmacfarlane.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).