From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/15995 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Erik_L=C3=B8vlie?= Newsgroups: gmane.text.pandoc Subject: inconsistent handling of lists Date: Sat, 12 Nov 2016 09:30:18 -0800 (PST) Message-ID: <73dc56d9-913a-4136-af9e-57db513670c8@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1853_614237898.1478971818852" X-Trace: blaine.gmane.org 1478971856 4627 195.159.176.226 (12 Nov 2016 17:30:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2016 17:30:56 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCH3JS4Q4QPBBK5DTXAQKGQEQMVSRJQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Nov 12 18:30:52 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f63.google.com ([209.85.213.63]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c5c88-0004jA-Nf for gtp-pandoc-discuss@m.gmane.org; Sat, 12 Nov 2016 18:30:16 +0100 Original-Received: by mail-vk0-f63.google.com with SMTP id x186sf21421850vkd.0 for ; Sat, 12 Nov 2016 09:30:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=m272H9suoZQVx1b4/6z4AcigdFshF9HydsUnWY6cOe4=; b=HF7Fs5vRCeriEo6UiGzEPlaCUoGh5TcNXS1PX+hVKbmESUePjAwfZPfQokIf7Di8F8 Fn+syHtd+pf2kl5CBrp4U1N5YE9ZqnuQb2uAs1FTnCls9EN9+fSDeN4CxRrYcujIuIqo FvgAoEzA5u0sOw8FoKWscw44ngAz1Q+2a23RgUEDI9Br0CGWSeIjRVrs4Y7PQcQgjnC+ MWhz4Q9i6CyVyuHCXRVOMfzACFq4OwNsGCZO7EZyxIz5fNBxz9gqTSTI/04/TVHyLrnk QKaUDlBMGW57damG3Vry5XgDrY0SzTuUXje+AJDb/5MOhh1YFKmU/WUxrRGY3bQJnFUB Ngww== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=m272H9suoZQVx1b4/6z4AcigdFshF9HydsUnWY6cOe4=; b=e9rYKvBcwZa6SPYL5Nam+bNh7OlpajQxsME4HtnAxSKnBT0KD8+Sq6/N1AOFOkI4I9 GM8mDeN7XLEL/FQ/Bos0zAHEtYYo9FiQ43j6EUq6EvszIqPiw2dsx5j0ddvBcDeftrNo rbqfsiHTlbWyvuqDP5lTgtVDHXpHKMR43Kv1X74zH2PkEVK8RMQkacomC+Aoux62ZjUQ hwTCrqvabBbtgc+4kR1W94AvaKR+odEkbqOuVnRqSm8R9F31YvEtIn8oMhiul5o254YA FX3Q8utdFH9RRqBHxCgiyDsJa1SZv8x6JFULU+jQAUIDZPGAxKZI8xc5lSO2BJ2SdrUw dGRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=m272H9suoZQVx1b4/6z4AcigdFshF9HydsUnWY6cOe4=; b=DNdEmzd0N33nHJzNoZWYGFnmcHIJPEBkb4Tndln5Iglf1uEOWYcp6yDVMVu76O4TD3 okIb0O9exHvvB38gsexdV8Yy3l3BF4YzthM7OvKiVWUOIfTyfiiyAjG4uFTC/TdDW4ES I+iZaM+DYse/sUuZhyG22wV4EriroKWObM2gkhr1HP7OdEqZ8tHmUgMHf+YGrE1LcoXB dktqO4U1xTInJPU9SzYEbcaCX8ZFjFcrYYJzAbr2mJgLGkIYhKtfYCgIQOuvj/RMJfcd NcrqSCb6N1EoZl8VmDfO0+gFwNWrs6Z+PykczPQl18Ec62mMp4EMWolLGz0qK40DYAQf B30w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABUngvevGlOh3qLvnAHFO5D2noBBQD5zJ1/3E4rS+AQCem60Unkhh7ND7QfLmD1O0OQUUg== X-Received: by 10.157.40.215 with SMTP id s81mr764826ota.7.1478971819714; Sat, 12 Nov 2016 09:30:19 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.52.220 with SMTP id t28ls3817282otd.3.gmail; Sat, 12 Nov 2016 09:30:19 -0800 (PST) X-Received: by 10.157.37.59 with SMTP id k56mr765381otb.3.1478971819252; Sat, 12 Nov 2016 09:30:19 -0800 (PST) X-Original-Sender: eriklovlie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:15995 Archived-At: ------=_Part_1853_614237898.1478971818852 Content-Type: multipart/alternative; boundary="----=_Part_1854_2106679839.1478971818852" ------=_Part_1854_2106679839.1478971818852 Content-Type: text/plain; charset=UTF-8 I'm seeing some inconsistent handling of lists in a commonmark document. Afaict a list with a single item is treated slightly differently from lists with multiple items. The document (not including %%% etc): %%%%%% - foo + foo 1 - bar blabla - baz + baz 1 %%%%%% Output:
  • foo

    • foo 1
  • bar

blabla

  • baz
    • baz 1
I would have expected "foo" and "baz" to either both be in p tags or none of them. The resulting html ends up looking wonky. Adding another list item below "baz" makes a difference:
  • foo

    • foo 1
  • bar

blabla

  • baz

    • baz 1
  • yo

Note that "baz" is now in p tags, same as "foo". Pandoc installed using homebrew: $ pandoc --version pandoc 1.18 Compiled with pandoc-types 1.17.0.4, texmath 0.8.6.6, highlighting-kate 0.6.3 /Erik -- 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/73dc56d9-913a-4136-af9e-57db513670c8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1854_2106679839.1478971818852 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm seeing some inconsistent handling of lists in a co= mmonmark document. Afaict a list with a single item is treated slightly dif= ferently from lists with multiple items.

The document (not including= %%% etc):

%%%%%%
- foo
=C2=A0 + foo 1

- bar

bla= bla

- baz
=C2=A0 + baz 1
%%%%%%

Output:

<ul&g= t;
<li><p>foo</p>
<ul>
<li>foo 1<= /li>
</ul></li>
<li><p>bar</p></l= i>
</ul>
<p>blabla</p>
<ul>
<li&g= t;baz
<ul>
<li>baz 1</li>
</ul></li>=
</ul>

I would have expected "foo" and "baz&= quot; to either both be in p tags or none of them. The resulting html ends = up looking wonky.

Adding another list item below "baz" mak= es a difference:

<ul>
<li><p>foo</p>
&= lt;ul>
<li>foo 1</li>
</ul></li>
<li= ><p>bar</p></li>
</ul>
<p>blabla<= /p>
<ul>
<li><p>baz</p>
<ul>
&= lt;li>baz 1</li>
</ul></li>
<li><p>y= o</p></li>
</ul>

Note that "baz" is n= ow in p tags, same as "foo".

Pandoc installed using homebr= ew:

$ pandoc --version
pandoc 1.18
Compiled with pandoc-types = 1.17.0.4, texmath 0.8.6.6, highlighting-kate 0.6.3

/Erik

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-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/73dc56d9-913a-4136-af9e-57db513670c8%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1854_2106679839.1478971818852-- ------=_Part_1853_614237898.1478971818852--