From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23063 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: mb21 Newsgroups: gmane.text.pandoc Subject: Re: Fenced div main class as string and more attributes later Date: Fri, 28 Jun 2019 01:55:25 -0700 (PDT) Message-ID: <8e050d22-4d80-45c9-b5c8-74dbb263da11@googlegroups.com> References: <7ed7a801-1691-4285-9ad5-56945a90558a@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_685_1461992004.1561712125158" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="204296"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDCMBBVJ5EFBB7VL27UAKGQEWHH2SSI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 28 10:55:34 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f192.google.com ([209.85.167.192]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hgmfO-000qvT-7U for gtp-pandoc-discuss@m.gmane.org; Fri, 28 Jun 2019 10:55:34 +0200 Original-Received: by mail-oi1-f192.google.com with SMTP id i16sf2233150oie.1 for ; Fri, 28 Jun 2019 01:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=ejHEJNvvECkpjzFMf3K3+c9U1LRLR1l9CtMESc8JFGo=; b=FYr5AhJTZn97moisGyYp0+2HhHjKiaadbxKxMzgRre9ZIzU6JlvzfN21t/GX0fptLs yZTGJIGphjiiMHXg6T8YvlfDQJuBzy5BzXCFgbWCWmjz/RQ8hTHGppFLXPOeW8qT9knH irVgBdX9xr0ePtsQ9C17ElilE6pCIFcwr/4Hc2vE2umBH1jogdm0iQGK5s/p37zcS5Ju lSKmH+xh0AlXWhFPjkuz+cMnAdmHNxlETEHnNkGztsUnV+YI0QdW+/KWcF6Xe6j3ryKJ z4iqwisQOvVmpu9WO8MaauCKcvYbksCuHunACGvkz4DBM1b6Qsa3ocK2nPdqolCJTK+7 OFpA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=ejHEJNvvECkpjzFMf3K3+c9U1LRLR1l9CtMESc8JFGo=; b=muDldI6VnegFTXrO0ZfAylObLhfgcsCYQo3ZruLZTlHX5M92AywVnRI8JFPviWCpeL Yo6iylLFsdZqxiNL32iuDerZHTUzSf7az3LeTxxt/ZWZfPjfGpVxgjXffXC4mdyaE0bC e11PWJkz4RXcLBVDKao5eviNQkWsyTzu20r/nxGi+ThyVAhdWj1uFUSqTcXFcxqx4KF8 wK2YavXdqE33N07sLTqRAYASh7kwbBqwTRXbaxO/rtNHtiNWV2NOxmTSBEBn7rUOztG3 eDXj6wOzeS6Dkz5IhqYkw2KB5A5XXcqpg9QtHa3WrehtLq/YTIKrz4DFqfiqkj1PnRBg B/5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references: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=ejHEJNvvECkpjzFMf3K3+c9U1LRLR1l9CtMESc8JFGo=; b=Z0n+zCJ9Vp5pHVZvBppyE+O7tOoZjgkQl12n/FadZzqAK5kNhi4IOnV1TYW0ah9Iao ayRXHGtOXkvogVy4uwW3MEzIVdu1hOxizkIQveEvYixlahvD68+MvGTIORJQn0Mwbguj rbhyTlMn9YrpCkYHvx1wi61JK/WS4PuDxc66oGslr0jqGHT/t/CJKpfY41JJXyAlsRbj W0JD3+JUb0QFvI+GWo+PBr2e7Vn3h4UZMGkknYnmhPb9Bg+TfjuLJ4v1HtRDV11qlUfR 0Wy58Vti55SOJhDQNGnzZEGvo/GWJna2b6Le6zYancwC/dVfL20vkqCmIMkI+ubQWH3o BsoA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAWUxrbuEBnIfsg8xtqHtBNnxWWC2i0pFDM1D9gfVDiSURs6MQkV o0DfCeCDE0FufYthH1Ro3eo= X-Google-Smtp-Source: APXvYqwz3WDGXrwxZsd8H5//wbG1rKzNKOpS4UzrI//43AFZiHPMIHNAA8ukB0rzSDCp5Dbvyrw5ag== X-Received: by 2002:aca:5883:: with SMTP id m125mr1092317oib.58.1561712126834; Fri, 28 Jun 2019 01:55:26 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:eea:: with SMTP id 97ls392750otj.13.gmail; Fri, 28 Jun 2019 01:55:25 -0700 (PDT) X-Received: by 2002:a9d:62c4:: with SMTP id z4mr6879558otk.56.1561712125696; Fri, 28 Jun 2019 01:55:25 -0700 (PDT) In-Reply-To: X-Original-Sender: mauro.bieg-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:23063 Archived-At: ------=_Part_685_1461992004.1561712125158 Content-Type: multipart/alternative; boundary="----=_Part_686_469009852.1561712125159" ------=_Part_686_469009852.1561712125159 Content-Type: text/plain; charset="UTF-8" I agree that the proposed variant looks nicer. However, it adds yet another way to do the same thing, which may lead to confusion (and may make learning pandoc markdown harder). Another question is whether fenced code blocks would then have to support that style as well... On Wednesday, June 26, 2019 at 5:55:27 PM UTC+2, Chao Xu wrote: > > Does it make sense to make them mutually exclusive? > > The syntax is identical to the `header_attributes` extension. Except for > that string in front is the class name instead of the header. > However, it still makes sense, because often the class name itself acts as > a header for a div. (warning, theorem, remark, etc) > > I'm suggesting making an enhancement, allowing the one I showed in the > email. > > Best, > Chao Xu > > > On Wed, Jun 26, 2019 at 9:16 AM BP Jonsson > wrote: > >> The two styles, a *single* class without braces or CSS-like attributes in >> braces, are mutually exclusive, i.e. you can use one or the other on any >> given block but you can't mix them on the same block, so if you want both a >> class and an id you must use {#id .class} >> >> Den tis 25 juni 2019 23:12Chao Xu > skrev: >> >>> Hi all, >>> >>> What should be the desired behavior for the following code in Pandoc >>> Markdown? >>> >>> ::: Theorem {#id} >>> This is a theorem. >>> ::: >>> >>> Knowing both::: Theorem and ::: {.Theorem #id} exists, I would expect >>> it behaves as >>> >>> ::: {.Theorem #id} >>> This is a theorem. >>> ::: >>> >>> But that is not true. The HTML output is. >>> >>>

::: Theorem {#id} This is a theorem. :::

>>> >>> >>> Of course, as the current pandoc markdown states: >>> > As with fenced code blocks, one can use either attributes in curly >>> braces or a single unbraced word, which will be treated as a class name. >>> >>> But I do believe what I suggest is more reasonable, especially most of >>> the time there are no additional attributes except the class name. >>> >>> I've raised the issue here. >>> https://github.com/jgm/pandoc/issues/5611 >>> >>> Best, >>> Chao Xu >>> >>> -- >>> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . >>> To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >>> . >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/7ed7a801-1691-4285-9ad5-56945a90558a%40googlegroups.com >>> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "pandoc-discuss" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/pandoc-discuss/2NWx-P7p7P4/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . >> To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuSJDq9oNEP2Ka4bs3dhTQRMqD-JfpMsfNjnJpqALnW1Ug%40mail.gmail.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/8e050d22-4d80-45c9-b5c8-74dbb263da11%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_686_469009852.1561712125159 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I agree that the proposed variant looks nicer. However, it= adds yet another way to do the same thing, which may lead to confusion (an= d may make learning pandoc markdown harder). Another question is whether fe= nced code blocks would then have to support that style as well...

<= br>On Wednesday, June 26, 2019 at 5:55:27 PM UTC+2, Chao Xu wrote:
Does it make sense to = make them mutually exclusive?

The syntax is identic= al to the `header_attributes` extension. Except for that string in front is= the class name instead of the header.
However, it still makes se= nse, because often the class name itself acts as a header for a div.=C2=A0 = (warning, theorem, remark, etc)

I'm suggesting= making an enhancement, allowing the one I showed in the email.=C2=A0

Best,
Chao Xu


On Wed= , Jun 26, 2019 at 9:16 AM BP Jonsson <bpjo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
The = two styles, a *single* class without braces or CSS-like attributes in brace= s, are mutually exclusive, i.e. you can use one or the other on any given b= lock but you can't mix them on the same block, so if you want both a cl= ass and an id you must use {#id .class}

Den tis 25 juni 2019 23:12Chao Xu <mgc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>= ; skrev:
Hi all,

What should be the desired behavior fo= r the following code in Pandoc Markdown?

::: Theorem {#id}
This is a theorem.
:::=C2=A0

<= div>Knowing both::: Theorem=C2=A0and=C2=A0:= :: {.Theorem=C2=A0#id} exists, I would expect i= t behaves as

::: {.Theorem #id}
This is a theorem.
:::=C2=A0

But that is not = true. The HTML output is.

<p>::: Theorem {#id} This is a theorem. :::</p>


Of course, as the current= pandoc markdown states:
> As with fenced code blocks, one can= use either attributes in curly braces or a single unbraced word, which wil= l be treated as a class name.

But I do believe= what I suggest is more reasonable, especially most of the time there are n= o additional attributes except the class name.

I&#= 39;ve raised the issue here.
=

Best,
Chao Xu

--
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 pandoc-...@googlegroups.com.
To post to this group, send email to pandoc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pan= doc-discuss/7ed7a801-1691-4285-9ad5-56945a90558a%40googlegroups.c= om.
For more options, visit https://groups.google.com= /d/optout.

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-di= scuss/2NWx-P7p7P4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-...@<= wbr>googlegroups.com.
To post to this group, send email to pandoc-...@googlegroups.com.
To view this discussion on the web visit http= s://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuSJDq9oNEP2Ka4= bs3dhTQRMqD-JfpMsfNjnJpqALnW1Ug%40mail.gmail.com.
For more options, visit https://groups.google.com/= d/optout.

--
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/8e050d22-4d80-45c9-b5c8-74dbb263da11%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_686_469009852.1561712125159-- ------=_Part_685_1461992004.1561712125158--