public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Fixing annoying slidy footnote bug
@ 2020-10-29 15:56 Michael Schwartz
       [not found] ` <eb3fa268-97a7-4e17-95ca-a8fae73f3304n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Schwartz @ 2020-10-29 15:56 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1090 bytes --]

I sometimes use the slidy style for presentations.

However, when I use footnotes, the links between the footnotes and the text 
don't work because they are generated incorrectly, and have to be "fixed 
up" by hand, which is not ideal.

Unfortunately, the way to fix this in the code is not obvious to me, but 
might be obvious to someone else.

The code generated for the footnotes looks like this in the HTML:

<li id="fn1">.....</li>

It should look like this:

<li><a id="fn1"></a>....</li>

I hope someone finds this simple enough to fix that it can be updated in 
the source code.

Meanwhile, if this has annoyed anyone else, at least you can see the 
workaround.

Michael

-- 
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/eb3fa268-97a7-4e17-95ca-a8fae73f3304n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1686 bytes --]

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

* Re: Fixing annoying slidy footnote bug
       [not found] ` <eb3fa268-97a7-4e17-95ca-a8fae73f3304n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-10-29 18:46   ` Michael Schwartz
  2020-10-29 21:56   ` John MacFarlane
  1 sibling, 0 replies; 6+ messages in thread
From: Michael Schwartz @ 2020-10-29 18:46 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1318 bytes --]

I see now that the same error exists for plain HTML5 output as well as S5 
slides, so it is a common behavior.

On Thursday, October 29, 2020 at 9:56:49 AM UTC-6 Michael Schwartz wrote:

> I sometimes use the slidy style for presentations.
>
> However, when I use footnotes, the links between the footnotes and the 
> text don't work because they are generated incorrectly, and have to be 
> "fixed up" by hand, which is not ideal.
>
> Unfortunately, the way to fix this in the code is not obvious to me, but 
> might be obvious to someone else.
>
> The code generated for the footnotes looks like this in the HTML:
>
> <li id="fn1">.....</li>
>
> It should look like this:
>
> <li><a id="fn1"></a>....</li>
>
> I hope someone finds this simple enough to fix that it can be updated in 
> the source code.
>
> Meanwhile, if this has annoyed anyone else, at least you can see the 
> workaround.
>
> Michael
>

-- 
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/6be27f11-93ad-4bf1-b6d6-2d8705388678n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2123 bytes --]

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

* Re: Fixing annoying slidy footnote bug
       [not found] ` <eb3fa268-97a7-4e17-95ca-a8fae73f3304n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2020-10-29 18:46   ` Michael Schwartz
@ 2020-10-29 21:56   ` John MacFarlane
       [not found]     ` <m2o8kkr916.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: John MacFarlane @ 2020-10-29 21:56 UTC (permalink / raw)
  To: Michael Schwartz, pandoc-discuss


Why doesn't this work?  li elements can have id attributes,
and can be linked to...

Michael Schwartz <m.i.schwartz23-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I sometimes use the slidy style for presentations.
>
> However, when I use footnotes, the links between the footnotes and the text 
> don't work because they are generated incorrectly, and have to be "fixed 
> up" by hand, which is not ideal.
>
> Unfortunately, the way to fix this in the code is not obvious to me, but 
> might be obvious to someone else.
>
> The code generated for the footnotes looks like this in the HTML:
>
> <li id="fn1">.....</li>
>
> It should look like this:
>
> <li><a id="fn1"></a>....</li>
>
> I hope someone finds this simple enough to fix that it can be updated in 
> the source code.
>
> Meanwhile, if this has annoyed anyone else, at least you can see the 
> workaround.
>
> Michael
>
> -- 
> 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/eb3fa268-97a7-4e17-95ca-a8fae73f3304n%40googlegroups.com.


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

* Re: Fixing annoying slidy footnote bug
       [not found]     ` <m2o8kkr916.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2020-10-29 23:19       ` Michael Schwartz
       [not found]         ` <822647d6-02b0-4250-a9cd-5a3e26fe467bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Schwartz @ 2020-10-29 23:19 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2074 bytes --]

I agree that other id attributes _should_ work logically; however, the 
requirement for fragment urls is "In HTML documents, the browser looks for 
an anchor tag *<a>* with an id attribute matching the fragment"

On Thursday, October 29, 2020 at 3:56:40 PM UTC-6 John MacFarlane wrote:

>
> Why doesn't this work? li elements can have id attributes,
> and can be linked to...
>
> Michael Schwartz <m.i.sch...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > I sometimes use the slidy style for presentations.
> >
> > However, when I use footnotes, the links between the footnotes and the 
> text 
> > don't work because they are generated incorrectly, and have to be "fixed 
> > up" by hand, which is not ideal.
> >
> > Unfortunately, the way to fix this in the code is not obvious to me, but 
> > might be obvious to someone else.
> >
> > The code generated for the footnotes looks like this in the HTML:
> >
> > <li id="fn1">.....</li>
> >
> > It should look like this:
> >
> > <li><a id="fn1"></a>....</li>
> >
> > I hope someone finds this simple enough to fix that it can be updated in 
> > the source code.
> >
> > Meanwhile, if this has annoyed anyone else, at least you can see the 
> > workaround.
> >
> > Michael
> >
> > -- 
> > 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/eb3fa268-97a7-4e17-95ca-a8fae73f3304n%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/822647d6-02b0-4250-a9cd-5a3e26fe467bn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3289 bytes --]

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

* Re: Fixing annoying slidy footnote bug
       [not found]         ` <822647d6-02b0-4250-a9cd-5a3e26fe467bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-10-30  1:05           ` John MacFarlane
       [not found]             ` <m2ft5wr09x.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: John MacFarlane @ 2020-10-30  1:05 UTC (permalink / raw)
  To: Michael Schwartz, pandoc-discuss


Where is this requirement documented?

We've used this style for HTML footnotes for many, many
years, and I've never noticed it not working.

Michael Schwartz <m.i.schwartz23-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I agree that other id attributes _should_ work logically; however, the 
> requirement for fragment urls is "In HTML documents, the browser looks for 
> an anchor tag *<a>* with an id attribute matching the fragment"
>
> On Thursday, October 29, 2020 at 3:56:40 PM UTC-6 John MacFarlane wrote:
>
>>
>> Why doesn't this work? li elements can have id attributes,
>> and can be linked to...
>>
>> Michael Schwartz <m.i.sch...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>
>> > I sometimes use the slidy style for presentations.
>> >
>> > However, when I use footnotes, the links between the footnotes and the 
>> text 
>> > don't work because they are generated incorrectly, and have to be "fixed 
>> > up" by hand, which is not ideal.
>> >
>> > Unfortunately, the way to fix this in the code is not obvious to me, but 
>> > might be obvious to someone else.
>> >
>> > The code generated for the footnotes looks like this in the HTML:
>> >
>> > <li id="fn1">.....</li>
>> >
>> > It should look like this:
>> >
>> > <li><a id="fn1"></a>....</li>
>> >
>> > I hope someone finds this simple enough to fix that it can be updated in 
>> > the source code.
>> >
>> > Meanwhile, if this has annoyed anyone else, at least you can see the 
>> > workaround.
>> >
>> > Michael
>> >
>> > -- 
>> > 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/eb3fa268-97a7-4e17-95ca-a8fae73f3304n%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/822647d6-02b0-4250-a9cd-5a3e26fe467bn%40googlegroups.com.


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

* Re: Fixing annoying slidy footnote bug
       [not found]             ` <m2ft5wr09x.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2020-10-30  4:38               ` Michael Schwartz
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Schwartz @ 2020-10-30  4:38 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 3517 bytes --]

I spent too much time tracking this down and withdraw the question.

It does not work without the change in my documents that use footnotes and 
are displayed in the current Chrome browser.

However (and I should have checked first), some other browsers handle this 
fine (e.g., Opera). The quotation I provided was from a W3 site document, 
but not the official or current spec.

The specs are behind you in the current HTML5 specification, so the 
behavior problem is not from pandoc, and I apologize for the distraction.

Michael


On Thursday, October 29, 2020 at 7:05:47 PM UTC-6 John MacFarlane wrote:

>
> Where is this requirement documented?
>
> We've used this style for HTML footnotes for many, many
> years, and I've never noticed it not working.
>
> Michael Schwartz <m.i.sch...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > I agree that other id attributes _should_ work logically; however, the 
> > requirement for fragment urls is "In HTML documents, the browser looks 
> for 
> > an anchor tag *<a>* with an id attribute matching the fragment"
> >
> > On Thursday, October 29, 2020 at 3:56:40 PM UTC-6 John MacFarlane wrote:
> >
> >>
> >> Why doesn't this work? li elements can have id attributes,
> >> and can be linked to...
> >>
> >> Michael Schwartz <m.i.sch...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> >>
> >> > I sometimes use the slidy style for presentations.
> >> >
> >> > However, when I use footnotes, the links between the footnotes and 
> the 
> >> text 
> >> > don't work because they are generated incorrectly, and have to be 
> "fixed 
> >> > up" by hand, which is not ideal.
> >> >
> >> > Unfortunately, the way to fix this in the code is not obvious to me, 
> but 
> >> > might be obvious to someone else.
> >> >
> >> > The code generated for the footnotes looks like this in the HTML:
> >> >
> >> > <li id="fn1">.....</li>
> >> >
> >> > It should look like this:
> >> >
> >> > <li><a id="fn1"></a>....</li>
> >> >
> >> > I hope someone finds this simple enough to fix that it can be updated 
> in 
> >> > the source code.
> >> >
> >> > Meanwhile, if this has annoyed anyone else, at least you can see the 
> >> > workaround.
> >> >
> >> > Michael
> >> >
> >> > -- 
> >> > 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/eb3fa268-97a7-4e17-95ca-a8fae73f3304n%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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/822647d6-02b0-4250-a9cd-5a3e26fe467bn%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/66f39281-845f-46ce-a67a-b2107d74936an%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 5692 bytes --]

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

end of thread, other threads:[~2020-10-30  4:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-29 15:56 Fixing annoying slidy footnote bug Michael Schwartz
     [not found] ` <eb3fa268-97a7-4e17-95ca-a8fae73f3304n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-10-29 18:46   ` Michael Schwartz
2020-10-29 21:56   ` John MacFarlane
     [not found]     ` <m2o8kkr916.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-10-29 23:19       ` Michael Schwartz
     [not found]         ` <822647d6-02b0-4250-a9cd-5a3e26fe467bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-10-30  1:05           ` John MacFarlane
     [not found]             ` <m2ft5wr09x.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-10-30  4:38               ` Michael Schwartz

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