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.
:::
A
The ‘section’ class seems 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). ref.
https://github.com/jgm/pandoc/issues/8518.
C
Alternatively use a different class name
(apparently anything other than ‘section’?). In this case, the id is propagated to the section element.
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.