public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Special role of the 'section' class when generating HTML?
@ 2023-03-20 21:53 'William Lupton' via pandoc-discuss
       [not found] ` <CAEe_xxi3kqeN-Mnh39FmHDW8wCxEw7cH8LiGB3ubyvWGPPSwHw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: 'William Lupton' via pandoc-discuss @ 2023-03-20 21:53 UTC (permalink / raw)
  To: pandoc-discuss

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

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_xxi3kqeN-Mnh39FmHDW8wCxEw7cH8LiGB3ubyvWGPPSwHw%40mail.gmail.com.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Special role of the 'section' class when generating HTML?
       [not found] ` <CAEe_xxi3kqeN-Mnh39FmHDW8wCxEw7cH8LiGB3ubyvWGPPSwHw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2023-04-06 14:26   ` 'William Lupton' via pandoc-discuss
  0 siblings, 0 replies; 2+ messages in thread
From: 'William Lupton' via pandoc-discuss @ 2023-04-06 14:26 UTC (permalink / raw)
  To: pandoc-discuss

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-06 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 21:53 Special role of the 'section' class when generating HTML? '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 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).