BUG: Multiple references to the same footnote list the footnote repeatedly

362 views
Skip to first unread message

Dan Dascalescu

unread,
Aug 5, 2009, 12:52:06 AM8/5/09
to MultiMarkdown Discussion List
I wanted to use the same named reference to support multiple
statements in one document, and found that the footnote was repeated
for each reference, and the number of the footnote anchor increased.

Test case at http://bit.ly/multiple_references_same_footnote_bug:

Text[^foo]

More text[^foo]

Other text

[^foo]: footnote

HTH,
Dan Dascalescu

Fletcher T. Penney

unread,
Aug 5, 2009, 7:14:57 AM8/5/09
to Dan Dascalescu, MultiMarkdown Discussion List
I'm not sure that this is really a bug.

HTML doesn't really have footnotes, so what I did was create a
representation of a footnote (hence all the <span>'s and classes, etc).
When converted to LaTeX (which is really why I added footnotes to
begin with), you would get a separate copy of each instance of the footnote.

This is entirely different than end notes, which MMD doesn't technically
support (by default - you can do whatever you want with XSLT).

I'll have to think about the proper behavior here - MMD doesn't do error
checking to be sure you *didn't* use the same footnote label more than
once, so it allows it. But you'll notice both instances have the same
id, so the the reverse links from the footnote back to the text don't
work properly....

F-

> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "MultiMarkdown Discussion List" group.
> To post to this group, send email to multim...@googlegroups.com
> To unsubscribe from this group, send email to multimarkdow...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/multimarkdown?hl=en
> -~----------~----~----~----~------~----~------~--~---
>

--
Fletcher T. Penney
fletche...@gmail.com

I moved into an all-electric house. I forgot and left the porch light
on all day. When I got home the front door wouldn't open.
- Steven Wright

Fletcher T. Penney

unread,
Aug 24, 2009, 3:00:04 PM8/24/09
to Dan Dascalescu, MultiMarkdown Discussion List
I think my "verdict" on this one is that in this case you should be
using citations instead of footnotes --- that's what they're there for.

In the case of true footnotes, I think the proper behavior is for the
footnote to appear each time it's used (that's what footnotes do - if
you have the same text in a footnote on different pages of a book, it
appears on each page as a separate footnote).


I am willing for people to try and sway me with alternate proposals, but
for now this is how I'll leave it.


F-

On 8/5/09 12:52 AM, Dan Dascalescu wrote:
>

> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "MultiMarkdown Discussion List" group.
> To post to this group, send email to multim...@googlegroups.com
> To unsubscribe from this group, send email to multimarkdow...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/multimarkdown?hl=en
> -~----------~----~----~----~------~----~------~--~---
>

--
Fletcher T. Penney
fletche...@gmail.com

I'm writing a book. I've got the page numbers done.
- Steven Wright

Reply all
Reply to author
Forward
0 new messages