Closed andrewheiss closed 14 years ago
I fixed this in a local fork of Maruku. I changed the render_footnotes
in lib/maruku/output/to_html.rb
to look like this: http://gist.github.com/500015
Basically what my change does is find the last HTML node in the
footnote, and then if it is a <p>
render the footnote inside of it.
Otherwise (like if it was a blockquote or a list or something) I render
it exactly like Maruku does it.
I hope that's helpful!
Brilliant! That did it! Thanks!
See http://github.com/andrewheiss/maruku/commit/8902c316d451f4c90284a1fa6e08b57166123b58
This glitch still arises in Nesta, which depends on Maruku 0.6.0. Any idea whether this is a Nesta problem or a Maruku problem?
Sorry, I'm new at all this—just realised that this change was made in your fork of Maruku, and not in the main Maruku repo.
Both Gruber's implementation of footnotes and MultiMarkdown/Markdown Extra put the Unicode return character on the same line as the footnote:
would create:
Maruku puts the return character outside of the
<p>
, thus pushing it on a different line:I forked Maruku to attempt to fix it, but it seems to automatically put
<p>
tags on the footnotes before REXML can take over inrender_footnotes()
inlib/output/to_html.rb
, and it seems impossible to insert the return<a>
inside the footnote<p>
.Is there any way to make the footnote return link appear within the footnote paragraph element itself á la Gruber?