public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BP Jonsson <bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Fenced div main class as string and more attributes later
Date: Wed, 26 Jun 2019 15:16:21 +0200	[thread overview]
Message-ID: <CAFC_yuSJDq9oNEP2Ka4bs3dhTQRMqD-JfpMsfNjnJpqALnW1Ug@mail.gmail.com> (raw)
In-Reply-To: <7ed7a801-1691-4285-9ad5-56945a90558a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2505 bytes --]

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.
> 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
> <https://groups.google.com/d/msgid/pandoc-discuss/7ed7a801-1691-4285-9ad5-56945a90558a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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.

[-- Attachment #2: Type: text/html, Size: 4538 bytes --]

  parent reply	other threads:[~2019-06-26 13:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-25 21:12 Chao Xu
     [not found] ` <7ed7a801-1691-4285-9ad5-56945a90558a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-06-26 13:16   ` BP Jonsson [this message]
     [not found]     ` <CAFC_yuSJDq9oNEP2Ka4bs3dhTQRMqD-JfpMsfNjnJpqALnW1Ug-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-06-26 15:55       ` Chao Xu
     [not found]         ` <CAJQg2_0Lyq87W4jcRfD0Vnr+490dAkq5F7QTBCaS+xbv3QPwSQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-06-28  8:55           ` mb21
     [not found]             ` <8e050d22-4d80-45c9-b5c8-74dbb263da11-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-06-30 17:55               ` Chao Xu
     [not found]                 ` <CAJQg2_35kSAh3ooTEOuT0nmqW1PJurM1mSsbgFeTkj1njvLsxQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-07-01  9:24                   ` BP Jonsson
     [not found]                     ` <CAFC_yuQuSke3By09b48QXDL3dis2wrtXc7UNL=q42faiqMoMng-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-07-03 10:00                       ` John MacFarlane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFC_yuSJDq9oNEP2Ka4bs3dhTQRMqD-JfpMsfNjnJpqALnW1Ug@mail.gmail.com \
    --to=bpjonsson-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).