Thanks!

Issue has been opened in https://github.com/jgm/pandoc/issues/7342

Le mardi 1 juin 2021 à 15:35:29 UTC+2, John MacFarlane a écrit :

It's a bug, please report. Easily fixed though. We are
excluding width because it gets special treatment using a
style attribute, but currently the special treatment only
kicks in if you have "column" class too...

christophe dervieux <christoph...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hi,
>
> I noticed that width attributes is not passed through on Fenced Divs.
>
> *❯ pandoc -t html*
> *::: {#hello .greeting .message width=40%}*
> *Hello **world**!*
> *:::*
> *^Z*
> *<div id="hello" class="greeting message">*
> *<p>Hello <strong>world</strong>!</p>*
> *</div>*
>
> At first I thought maybe it is because it was not valid HTML but I don't
> height is also and it works
>
> *❯ pandoc -t html*
> *::: {#hello .greeting .message height=40%}*
> *Hello **world**!*
> *:::*
> *^Z*
> *<div id="hello" class="greeting message" height="40%">*
> *<p>Hello <strong>world</strong>!</p>*
> *</div>*
>
> Is there a special treatment for width attributes on fenced div ?
> I know they are not passed through asis on linked
> attributes https://pandoc.org/MANUAL.html#extension-link_attributes
>
> It seems from HTML to Markdown conversion, it is kept though
>
> *❯ pandoc -f html -t markdown*
> *<div id="hello" class="greeting message" width="40%">*
> *</div>*
> *^Z*
> *::: {#hello .greeting .message width="40%"}*
> *:::*
>
> I thought it was better to ask here before opening any issues as I am not
> sure what is expected on this.
>
> Thank you.
>
> Christophe
>
> --
> 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-discus...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/cfabbfee-2a97-4ea1-9742-b0a1a484fbcbn%40googlegroups.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5a427ae0-2a94-4e48-81d8-d272afb24a4fn%40googlegroups.com.