public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: christophe dervieux
	<christophe.dervieux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: width / height attributes on fenced divs ?
Date: Tue, 01 Jun 2021 07:35:14 -0600	[thread overview]
Message-ID: <m2eedlwvvx.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <cfabbfee-2a97-4ea1-9742-b0a1a484fbcbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


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.


  parent reply	other threads:[~2021-06-01 13:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01  9:05 christophe dervieux
     [not found] ` <cfabbfee-2a97-4ea1-9742-b0a1a484fbcbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-06-01 13:35   ` John MacFarlane [this message]
     [not found]     ` <m2eedlwvvx.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2021-06-01 22:16       ` christophe dervieux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2eedlwvvx.fsf@johnmacfarlane.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=christophe.dervieux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).