public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* 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

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).