From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23048 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: Fenced div main class as string and more attributes later Date: Wed, 26 Jun 2019 15:16:21 +0200 Message-ID: References: <7ed7a801-1691-4285-9ad5-56945a90558a@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bb649e058c39da24" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="114282"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDIY76M674FRBM7AZXUAKGQEDVQ7EGQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 26 15:16:39 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pl1-f190.google.com ([209.85.214.190]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hg7mv-000TaB-QJ for gtp-pandoc-discuss@m.gmane.org; Wed, 26 Jun 2019 15:16:38 +0200 Original-Received: by mail-pl1-f190.google.com with SMTP id t2sf1427064plo.10 for ; Wed, 26 Jun 2019 06:16:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1561554996; cv=pass; d=google.com; s=arc-20160816; b=vZi+H25GbQC2T3zqbQuSfAKKw06pS/00t+B8tjwx1fn2Wt2ISHs/Yik7xZvNQNgp1j BberRc+Dx9hQD2lrD4jtU8vMg/E4fZxjKSDQQI9wQl+p7Mss1Rd61hS3y1sCxt3q8uUf Bk7urv3l2dqRYKP+bSjyQTFdrVsfM4do/8qa6sDqTAODqvTqh06xrsN700PIKYpgWKcv c+F10WpVSnLAXutbZApgm8fQrVdNKsLjUN197u0SWpcuxhapgTdFekW4Bc1j6Nw6XXsO nDWGJzwc2ilTLbyeqHSx3OgJEc5vOVsp4O/IAly+C67e5t6O+exEv6I9+g3BM+6Ullcb cmUg== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=Fr5TnrOQQBEvBaz3iwFttINm17oijEVuQNgP4851mGQ=; b=YZHmQRN7GrSYYNJa7S3iTFZFOMjII+Stq5TpeRrCL9g/VWL3DxvG3GCBbEhHVtyXxV l8OW4aHwHaLiIpDk4DX6scE7mQOBdw+jlqbmAf3WqYWvOQjTddrw/u7t564eWB56mZbx eUVUGIwmxkR+MA7xHvgM7Jx/gBtoP9Hnk1F2DO1TOf1WWU/s2HETbBsBpxMsPLC3OFhK 616bQB3Kh+mDqgL0Bh3SkB2fiMnVGMkSF1H61UdhJMlZhV4MwsBKYVwMUdeBVJr1CF+j 9uT0xGgKrdMmYCEXot1ArDagLSKL8Z4d0Q2GBbk8mFps6fuGWcdQOj4m3gm5xlbOP+6q zf0A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rrcnWRjz; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to: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=Fr5TnrOQQBEvBaz3iwFttINm17oijEVuQNgP4851mGQ=; b=OdmxTBCWcbYEL5PN4UOPc1uahDex1gXs2xq2VYUn1QGfUG2S9PDTMzN7CRflsWV+vr JJP3NUAtdeQvMVEFoqLguP/untIX388j/V7iLF90Pz9ivyRsnXiPvMgLNLdbAIuFWFMf 95jK1+Rr/fxcQFXEp3mmCJJeF5/eUlWCGWQNUeDOFVCsl6s1MyPaafq3ntimRa1zWMfp t71B4M8mhLH2hReLo2aKt9fX8JI59HO6//k+bVZCIOM7fPK5o/fmOq/fTpXQkNdYi9a/ f3ShyY6Sf2t2RcWvwrsJSZFG9xV1LmDEGSzv+ds5nO13kdfQWXDMACvnuxaNYHZaMTD1 AsKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :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=Fr5TnrOQQBEvBaz3iwFttINm17oijEVuQNgP4851mGQ=; b=a6gLGl6mg0oq7AeRUetNrCU4IOHnd+sGtxjB0KjRet48w7z9JzeyuwRJapN7FQRbNn oFgXh1gUXCR7GL+/3T129jI74ldgyW3im9M8ywJhmCSVGY/59qqmW+xkpT8yuRQCLi6D mm4IAm7eOgf92+nU9zyJIRTHXB9XYuHm+OV9oqiWH+wH/rmW9HNT/mTGSeEF5bopl2N3 ke25f1h1GLaT2e07zq+4bhKoq9lTge4VD1MV4spLveLECrhvWiHpq822ZKLuGSRSMcTK 4Em7MXsc5KjuQ6hi3Lw+JlM0rIllDgVfrXabKRe5Z4ow8piIKOe86TNVcPMZJwb6yh98 sQtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=Fr5TnrOQQBEvBaz3iwFttINm17oijEVuQNgP4851mGQ=; b=hSZJ9cM0xEttw9cvLkA0Sj1RiNKqHa2HedqsWdtUPp2eZtmjTfYEKEWqAkgqfVis1y xVKKSXcyvwbdjNCp8sbeUDNtN3+es7U/7r6E/Ev74I9Up5pUM4eFU614gG53bSEH62BG 18h0RkDxOkqRQrUODmKW1StBZdvRL5X3lES66IVk7zoI1Ulel5DBT8jKS9vvCpRNiuAr aVv1CNgSwqO63d03SMItM3EA7/JRun4MJocEpLpPorbY1biLm6i7AQslJZYnsPM55Jy7 j5sqqjAPUx5PSSXYW3GeTmLIzcWVDtV9CVsPWTLwHJla5WXGoJZr4mNhIj1rNtBW90aR 7HQw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAViwgm/Kgvx/+BGxWxfdFmI1Yr7MqIIKPlC3VMVYyp1EZAbCWiX ebRq8pUtFt6yyhVWoGNefSE= X-Google-Smtp-Source: APXvYqx/TP/9oy/sqxWNnKqsWogfOvFGEu9+S65RJyhA/qs8C8TFhsqHBzSG1MEVxcBb6Rlkxe8KMg== X-Received: by 2002:a17:902:8509:: with SMTP id bj9mr5493189plb.79.1561554996266; Wed, 26 Jun 2019 06:16:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:8ec2:: with SMTP id x2ls712368plo.13.gmail; Wed, 26 Jun 2019 06:16:34 -0700 (PDT) X-Received: by 2002:a17:902:788f:: with SMTP id q15mr5532122pll.236.1561554994865; Wed, 26 Jun 2019 06:16:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561554994; cv=none; d=google.com; s=arc-20160816; b=iMTlRSDGRaU7nSpLH1byT0wd8Mx7ixWBot0MMnlFDDSfUzY5ABFHTebd96nFoaoSL4 2tkFlWyN/1jDXDg7vm1SmZvtNAyYS+GEhQn7xZok1Mi18dvpt6+XAS4jWncY94BHWTl1 NGV5cOFmcth4fzB4H06/DBobfAB1yNtd0lbgTqa70OmcYUpQwGbDd0ovCywRCvpXTdif WysMzVE+KGg2XNI28Js8KgBsqjOF5cjs1SXa1U5zQBlb9wJzH63HQZYTfDHlFjMc4G0r H+b2gUqHEb4jVb4oeHxofJ+BsDy0l4/BbblLD5J9xT0qjZl6aXvyaBmOd3INkjUh/hAS 9p1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=nli3lbXaBv+itII/9hpw/+e2EqVtJ44mxydrqaO/q6w=; b=xlmW8DqG3Jrfd/vM4nMUjlBQiaUzKMty069rioCGRPTrsc4JdiiWWKKdJFPgbFoT2c wwicDuK+3OaB8eTCAkpLyNm53AU3re3Lsq11fMurGkfPTs5PovDkU4deeWq6uK8y7n7Y PxyVnlIF41kCGkEOHFSxegvmkhpwQit7AwKcqDswZiBN3q+cGZYqc0uEdS/jI6kLob+H t8pADl0lH98tHT3GOR9MOLffUe8soSj8wP1T3uCdDSbWrME6EYpgp9XIH7NdXkuQuD5r PD4izwWQTG+MGw0VX1rtw3B1RK1dNo46UX3UmrLMoBZluOsdLomqQ+TVYzxITyLlAOEx c3iw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rrcnWRjz; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com. [2607:f8b0:4864:20::429]) by gmr-mx.google.com with ESMTPS id 69si766442pgc.3.2019.06.26.06.16.34 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2019 06:16:34 -0700 (PDT) Received-SPF: pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) client-ip=2607:f8b0:4864:20::429; Original-Received: by mail-pf1-x429.google.com with SMTP id m30so1344907pff.8 for ; Wed, 26 Jun 2019 06:16:34 -0700 (PDT) X-Received: by 2002:a63:1303:: with SMTP id i3mr2981024pgl.202.1561554994290; Wed, 26 Jun 2019 06:16:34 -0700 (PDT) In-Reply-To: <7ed7a801-1691-4285-9ad5-56945a90558a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rrcnWRjz; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::429 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:23048 Archived-At: --000000000000bb649e058c39da24 Content-Type: text/plain; charset="UTF-8" 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-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/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 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/CAFC_yuSJDq9oNEP2Ka4bs3dhTQRMqD-JfpMsfNjnJpqALnW1Ug%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. --000000000000bb649e058c39da24 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The two styles, a *single* class without braces or CSS-li= ke attributes in braces, are mutually exclusive, i.e. you can use one or th= e 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 jun= i 2019 23:12Chao Xu <mgcclx-Re5JQEeQqe8@public.gmane.org= m> skrev:
H= i all,

What should be the desired behavior for the follo= wing code in Pandoc Markdown?

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

Knowing= both::: Theorem=C2=A0and=C2= =A0::: {.Theo= rem=C2=A0#id= } exists, I would expect it behaves= as

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


Of course, as the current pandoc m= arkdown states:
> As with fenced code blocks, one can use eith= er attributes in curly braces or a single unbraced word, which will be trea= ted as a class name.

But I do believe what I s= uggest is more reasonable, especially most of the time there are no additio= nal attributes except the class name.

I've rai= sed 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-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To post to this group, send email to pandoc-discuss@googlegrou= ps.com.
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 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/CAFC_yuSJDq9oNEP2Ka4bs3dhTQRMqD-JfpMsfNjn= JpqALnW1Ug%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--000000000000bb649e058c39da24--