* width / height attributes on fenced divs ?
@ 2021-06-01 9:05 christophe dervieux
[not found] ` <cfabbfee-2a97-4ea1-9742-b0a1a484fbcbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: christophe dervieux @ 2021-06-01 9:05 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1566 bytes --]
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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/cfabbfee-2a97-4ea1-9742-b0a1a484fbcbn%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2493 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: width / height attributes on fenced divs ?
[not found] ` <cfabbfee-2a97-4ea1-9742-b0a1a484fbcbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-06-01 13:35 ` John MacFarlane
[not found] ` <m2eedlwvvx.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2021-06-01 13:35 UTC (permalink / raw)
To: christophe dervieux, pandoc-discuss
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 <christophe.dervieux-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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2eedlwvvx.fsf%40johnmacfarlane.net.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: width / height attributes on fenced divs ?
[not found] ` <m2eedlwvvx.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2021-06-01 22:16 ` christophe dervieux
0 siblings, 0 replies; 3+ messages in thread
From: christophe dervieux @ 2021-06-01 22:16 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2653 bytes --]
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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
[-- Attachment #1.2: Type: text/html, Size: 4404 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-01 22:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 9:05 width / height attributes on fenced divs ? christophe dervieux
[not found] ` <cfabbfee-2a97-4ea1-9742-b0a1a484fbcbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-06-01 13:35 ` John MacFarlane
[not found] ` <m2eedlwvvx.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2021-06-01 22:16 ` christophe dervieux
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).