From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18573 Path: news.gmane.org!.POSTED!not-for-mail From: John MACFARLANE Newsgroups: gmane.text.pandoc Subject: Re: Two spaces before a fenced code block Date: Wed, 8 Nov 2017 17:36:16 -0800 Message-ID: <20171109013616.GB13604@protagoras> References: <573489f2-ba60-4239-9c21-3159bd78ff8b@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1510191356 7981 195.159.176.226 (9 Nov 2017 01:35:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Nov 2017 01:35:56 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB67BR3IAKGQE4FNQ6CA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 09 02:35:51 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f64.google.com ([209.85.213.64]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCbky-0001nX-95 for gtp-pandoc-discuss@m.gmane.org; Thu, 09 Nov 2017 02:35:48 +0100 Original-Received: by mail-vk0-f64.google.com with SMTP id g7sf1437076vka.3 for ; Wed, 08 Nov 2017 17:35:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1510191355; cv=pass; d=google.com; s=arc-20160816; b=hIszo33NjMC9Qaw1tJif2bcqQ0Q1QuiaSFy8boOw1xpp0uwZ5VkiDq8LdGBCT5VINE 1WGeUGtYNW0SPbWt4oo+LzMmtmAYbxrHNrhseXxpSARw1pDCoptDeXjkLQChBTJ7wn5O Cdc/SaULqqWBNdTFrivh7jHfWhFfTL06CtXb7HeOgkZ1i0993XAMBNj23sXY9Yk2yBNm KX0h44pgOwEfKgJBVfmIbSQnapKlcH9MhExp8rJDpQJr+HNsfpL7lUUxVqJ5oNjSscfp f88u78IdHKg4NgFzQe1D3owUkgGVI+nl0eq/acjeaAyzLJn4byZ+xdePYxao13J/zJ78 I5WQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=E9itmtna8X1rLumy7PeJSKj523xUbPD9mhdJ9638Ma0=; b=YB5wwVraB6FLOs0pN+EQN5YBUi04cMneir+3a9nGfTTmz64DUqKCmP0XILVGm+ffOH GukXv7ccY+tm5m8TmGfGrgzzzrIk6SmDEswWTT9VntL368F/kA7ocSNq1iT+d5wR0m9C Rb+AuDzjCtKyLdmmdDgshFVBRKGL59X+9SH2U8+jasGZtfNBmztyW93QP49MXXQSMYN/ igvOABRf4SaVZ84it4IUBiYwGSTckhz8aSiWDRTOSsl44z+YIsvRps8vUFBxlX1LoHQz p2obURdWJJMfNXRXNrNAZD0SkIicPd4RBm7sLkAU/LiSd5IAUeZEMCD6OGWfrYVsd6/8 ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=iOaCDoAG; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=E9itmtna8X1rLumy7PeJSKj523xUbPD9mhdJ9638Ma0=; b=JVz6zFI21aT6thF35nzMlWTzlJDZot0RJIGrpN+z08QFW1Rj2TCYXZYT4K3+lJGBQN AJv4v5/mS8vhkk0Vb9N3dIuVliB+hqak9qXNQp9FT54+LaWkXCToAqnc8aMkxp7RK0PQ DsQilTSGZEfv45aLRZhyluhyYwN3c8VGk0sJDOTKuV4Kpf6uUxrY2QOcvQQrZXwIWawS mAsJd8e01bG5M3qNDy3gjljkWl+g9qMENKmyCd5S4oUF0Rkw9S4iJnTMCDT73MbEuNXr ZGOPO7aXqW0WAmoj2onH02sy1M8VQOfBv5zn3rFanLTiUCIKq9UBMwvE0JJLqoVJiv9F LWbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=E9itmtna8X1rLumy7PeJSKj523xUbPD9mhdJ9638Ma0=; b=WxO/TfqiH7xt3L0kYpxyROfJvgGuoBDHBnI19ZRRN5qtZch63GGv+PxcBqq1qhquoP wuXH+P3eaJC2id3Jl3rfZs2oLca9EpS2hva3FjATbTvhBa3soKOwjiPATHjdnMyJv+oH 5A+5SFmaWGJDyHR1c+61GJobxOenOXCymXl8ogkIrztY1IgpJR0Ea3zN01n3Zo38kJJp f/y/FausFUeSPjb/oXcchRbHi21WcMV4dPxJ60scltcio7VIfo6aKCPX/Gn5nvUW9Gj8 org175tXam/PAeGaJERNuzXLs+uZBnt0/PiaKoek/bnjv+uMpVyWhhlZ0y93GwOYcGQX Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJaThX5qGpUfbSRy+6ffHHArz/9GEAhaVRBqLTJSRSXnAgBplPC8BnSr R5Y3A3TxlAk0NTDmI8Dm05o= X-Google-Smtp-Source: ABhQp+Q1ZnXmYGSFlpLLeC6HxjKf++6gPO2RCrVCnVWcKIUDQqk+/yGZkUWvJ9hmFR3GRg8VeWvWXg== X-Received: by 10.31.168.133 with SMTP id r127mr318556vke.8.1510191355616; Wed, 08 Nov 2017 17:35:55 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.200.22.57 with SMTP id p54ls9962588qtj.11.gmail; Wed, 08 Nov 2017 17:35:55 -0800 (PST) X-Received: by 10.237.60.187 with SMTP id d56mr316116qtf.54.1510191355035; Wed, 08 Nov 2017 17:35:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510191355; cv=none; d=google.com; s=arc-20160816; b=kXOf/+PbsNAMo9bIUPyE31wqmDTXvTcDqTvLGc+Mu4qbN/Qp9c8zf5Pusj/tZRpdMH p07m8gU0gQU4FnYzKmNFdO6qe6ki0nit8RjEZ+qw0TUP3vwLlWikCVdnLX/2Vd5gxaRe AJejzK93Dmo1Hh6HVWLnj07dcfIZWKYWE2Etf4TXN//Kkg+9t/XZLuTuD3QGx434kXvM 44fseuboCtp8DWLa/WrqRq6psasvctg1PNzKRgO6bZFlzxYcegbxCflMHuiosTbuPD8o //qg0Yx5EzKeFq8GYJWzlnLhvxLpHfFTtic4FTJMCX82JiiIY8EKXvfPX5eX7h8dy3PI 9bvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=AoL/qEovChufFpjr6UO4/2fZA83Ev1gccfLEfzB0xUc=; b=Dp/azMlJRxRTKHvhGSEjshdVWLEJouwdMZUxzVutmfWDUJN9HDlm40Iwrf1jV+xtNy 2FisDz6SfsT+dgt2SSj3ajfkqHw/ieEviGaV2LurjfYtBZEY58k+X04XEUu1CdHrAsCH sAOTFu+PkivBn38whNfD5CHB8ssD15RKP58Ki1QznPbQRJtT71Q8h0QKwnxTITuZGtFl A5HMPnrQQw4GqGe3oI+loZNyZeLO5wVaaHjEO7gCkGm1JwpXRKAxaxhQHa9sa3PfMCZL Hzs9dan8t/mYlcX7Yzpn1T5Z4iklPOcabOUD+1T1hgTPVNNzmh/WuFEvyh/q6oMbthG2 CqAg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=iOaCDoAG; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x22a.google.com (mail-pg0-x22a.google.com. [2607:f8b0:400e:c05::22a]) by gmr-mx.google.com with ESMTPS id a13si359282qtd.3.2017.11.08.17.35.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Nov 2017 17:35:55 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22a as permitted sender) client-ip=2607:f8b0:400e:c05::22a; Original-Received: by mail-pg0-x22a.google.com with SMTP id p9so3395074pgc.8 for ; Wed, 08 Nov 2017 17:35:54 -0800 (PST) X-Received: by 10.98.61.85 with SMTP id k82mr2422495pfa.84.1510191353855; Wed, 08 Nov 2017 17:35:53 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id z7sm8458591pgp.91.2017.11.08.17.35.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Nov 2017 17:35:52 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id C9262A1C5; Wed, 8 Nov 2017 20:35:41 -0500 (EST) Content-Disposition: inline In-Reply-To: <573489f2-ba60-4239-9c21-3159bd78ff8b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=iOaCDoAG; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:18573 Archived-At: See https://github.com/jgm/pandoc/issues/4051 We might want to relax the behavior here, more along the lines of CommonMark. +++ Yihui Xie [Nov 08 17 14:51 ]: > Hi, > After I upgraded from Pandoc 1.19 to 2.0, I was surprised that my > fenced code blocks under list items no longer worked: > - Item One. > - Item Two. > ``` > Code > ``` > I was expecting it to be translated to >
    >
  • Item One.

  • >
  • Item Two.

    >
    Code
  • >
> but it wasn't (there was no
). I read the release notes, and
>   it took me quite a while to realize that I had to indent by two spaces
>   in this case to line up with the list content:
>   - Item One.
>   - Item Two.
>     ```
>     Code
>     ```
>   The reason that the previous Markdown example was not recognized as a
>   fenced code block under a list item was that the four spaces = two
>   spaces (to line up with list) + two spaces, and the latter two spaces
>   turned the "fenced code block" into a paragraph:
>     ```
>     Code
>     ```
>   

Code

> Then I checked with Pandoc 1.19 again and realized it was also the case > there. Everything is clear to me now, but it is still surprising to me > that the two spaces before a fenced code block are actually meaningful. > BTW, I'm aware of the four_space_rule extension (which is disabled by > default). > Yihui > > -- > 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [3]https://groups.google.com/d/msgid/pandoc-discuss/573489f2-ba60-4239- > 9c21-3159bd78ff8b%40googlegroups.com. > For more options, visit [4]https://groups.google.com/d/optout. > >References > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 3. https://groups.google.com/d/msgid/pandoc-discuss/573489f2-ba60-4239-9c21-3159bd78ff8b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 4. https://groups.google.com/d/optout