public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "'William Lupton' via pandoc-discuss" <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Special role of the 'section' class when generating HTML?
Date: Thu, 6 Apr 2023 15:26:20 +0100	[thread overview]
Message-ID: <CAEe_xxhh+dpadBY=TL-r8-Z4me=t5Ue_z9+_+6qX6xkWtnFboA@mail.gmail.com> (raw)
In-Reply-To: <CAEe_xxi3kqeN-Mnh39FmHDW8wCxEw7cH8LiGB3ubyvWGPPSwHw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

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

FYI, I created https://github.com/jgm/pandoc/issues/8757 for this.

On Mon, 20 Mar 2023 at 21:53, William Lupton <wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org>
wrote:

> Dear all,
>
> Please see the "try pandoc" shown at the bottom of the message (markdown
> and HTML are shown below). It seems that the 'section' class must trigger
> some special HTML writer behaviour? Any thoughts?
>
> Thanks,
> William.
>
> PS, Ideally I'd prefer these divs not to be converted to sections, but I
> can live with that.
>
> ::: section :::
> # A
> The div and its 'section' class seem to be ignored here.
> :::
>
> ::: section :::
> <!-- -->
> # B
> Adding a comment fixes this, but the id isn't propagated to the section
> element (and this header isn't in the ToC). See <
> https://github.com/jgm/pandoc/issues/8518>.
> :::
>
> ::: xxx :::
> # C
> Alternatively, can use a different class name (apparently anything other
> than 'section'?). In this case, the id _is_ propagated to the section
> element.
> :::
>
> <h1 id="a">A</h1> <p>The ‘section’ class seems to be ignored here.</p> <
> section> <!-- --> <h1 id="b">B</h1> <p>Adding a comment fixes this, but
> the id isn’t propagated to the section element (and this header isn’t in
> the ToC). ref. <a href="https://github.com/jgm/pandoc/issues/8518" class=
> "uri">https://github.com/jgm/pandoc/issues/8518</a>.</p> </section> <
> section id="c" class="xxx"> <h1>C</h1> <p>Alternatively use a different
> class name (apparently anything other than ‘section’?). In this case, the
> id <em>is</em> propagated to the section element.</p> </section>
>
>
> https://pandoc.org/try/?params=%7B%22text%22%3A%22%3A%3A%3A+section+%3A%3A%3A%5Cn%23+A%5CnThe+%27section%27+class+seems+to+be+ignored+here.%5Cn%3A%3A%3A%5Cn%5Cn%3A%3A%3A+section+%3A%3A%3A%5Cn%3C%21--+--%3E%5Cn%23+B%5CnAdding+a+comment+fixes+this%2C+but+the+id+isn%27t+propagated+to+the+section+element+%28and+this+header+isn%27t+in+the+ToC%29.+ref.+%3Chttps%3A%2F%2Fgithub.com%2Fjgm%2Fpandoc%2Fissues%2F8518%3E.%5Cn%3A%3A%3A%5Cn%5Cn%3A%3A%3A+xxx+%3A%3A%3A%5Cn%23+C%5CnAlternatively+use+a+different+class+name+%28apparently+anything+other+than+%27section%27%3F%29.+In+this+case%2C+the+id+_is_+propagated+to+the+section+element.%5Cn%3A%3A%3A%22%2C%22to%22%3A%22html5%22%2C%22from%22%3A%22markdown%22%2C%22standalone%22%3Afalse%2C%22embed-resources%22%3Afalse%2C%22table-of-contents%22%3Afalse%2C%22number-sections%22%3Afalse%2C%22citeproc%22%3Afalse%2C%22html-math-method%22%3A%22plain%22%2C%22wrap%22%3A%22auto%22%2C%22highlight-style%22%3Anull%2C%22files%22%3A%7B%7D%2C%22template%22%3Anull%7D
>
>

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxhh%2BdpadBY%3DTL-r8-Z4me%3Dt5Ue_z9%2B_%2B6qX6xkWtnFboA%40mail.gmail.com.

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

      parent reply	other threads:[~2023-04-06 14:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-20 21:53 'William Lupton' via pandoc-discuss
     [not found] ` <CAEe_xxi3kqeN-Mnh39FmHDW8wCxEw7cH8LiGB3ubyvWGPPSwHw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-04-06 14:26   ` 'William Lupton' via pandoc-discuss [this message]

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='CAEe_xxhh+dpadBY=TL-r8-Z4me=t5Ue_z9+_+6qX6xkWtnFboA@mail.gmail.com' \
    --to=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).