public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: christophe dervieux <christophe.dervieux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: width / height attributes on fenced divs ?
Date: Tue, 1 Jun 2021 15:16:07 -0700 (PDT)	[thread overview]
Message-ID: <5a427ae0-2a94-4e48-81d8-d272afb24a4fn@googlegroups.com> (raw)
In-Reply-To: <m2eedlwvvx.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>


[-- 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 --]

      parent reply	other threads:[~2021-06-01 22:16 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
     [not found]     ` <m2eedlwvvx.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2021-06-01 22:16       ` christophe dervieux [this message]

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=5a427ae0-2a94-4e48-81d8-d272afb24a4fn@googlegroups.com \
    --to=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).