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 <bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <mgcclx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.

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

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@googlegroups.com.
To post to this group, send email to pandoc-discuss@googlegroups.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 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-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-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-/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/CAJQg2_0Lyq87W4jcRfD0Vnr%2B490dAkq5F7QTBCaS%2Bxbv3QPwSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.