public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* pandoc 2.18 -> 2.19 minor HTML writer difference?
@ 2022-08-08  8:14 William Lupton
       [not found] ` <CAEe_xxjNmOcBiH=GjmRHxBv4Q5QeCjHDppRex-HY4krgHDf0gg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: William Lupton @ 2022-08-08  8:14 UTC (permalink / raw)
  To: pandoc-discuss

[-- Attachment #1: Type: text/plain, Size: 1625 bytes --]

All (but probably mostly John),

This isn't important, but I noticed a minor difference in going from pandoc
2.18 to 2.19 and couldn't see it referenced in the release notes.

I generate this HTML, which is then passed to pandoc and comes out again as
HTML with a ToC:

<h1 class="unnumbered" id="sec:executive-summary">Executive Summary<a
class="headerlink" href="#sec:executive-summary" title="Permalink to this
header"> <img src='permalink.png' title='' width="0.8em"/></a></h1>

With 2.18 the final output (in the ToC) is this:

<li><a href="#sec:executive-summary"
id="toc-sec:executive-summary">Executive Summary <span><img
src="permalink.png" style="width:0.8em" /></span></a></li>

But in 2.19 it's this:

<li><a href="#sec:executive-summary"
id="toc-sec:executive-summary">Executive Summary <img src="permalink.png"
style="width:0.8em" /></a></li>

In the 2.18 output the <img> is in a <span> but in the 2.19 output there's
no <span>. I noticed this because I have CSS to hide the permalink image in
the ToC and this change broke the CSS.

I wondered whether this was an intentional change (of course I prefer not
to have a useless <span>, so I don't object to the change).

Thanks,
William

-- 
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/CAEe_xxjNmOcBiH%3DGjmRHxBv4Q5QeCjHDppRex-HY4krgHDf0gg%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 2607 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-08 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08  8:14 pandoc 2.18 -> 2.19 minor HTML writer difference? William Lupton
     [not found] ` <CAEe_xxjNmOcBiH=GjmRHxBv4Q5QeCjHDppRex-HY4krgHDf0gg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-08-08 13:40   ` Gwern Branwen
2022-08-08 16:22   ` John MacFarlane
     [not found]     ` <E58391EA-2668-4987-9B29-1CC28D5C257A-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-08-08 16:30       ` William Lupton

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