-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert before footnote numbers #96
Comments
Ideally should be fixed in blackfriday: russross/blackfriday#405 |
OK, need to make that regexp less strict.. the footnote ref could even be in the middle of the line, and depending on the screen width, we could end up with that footnote ref at the BOL of the next line.. So, need to always make the footnote ref stick to the word before it using |
Sorry for causing any trouble. It turned out this was only an issue with a specific Hugo theme, see https://discourse.gohugo.io/t/is-it-possible-to-enforce-the-footnote-number-to-render-on-same-line-as-preceding-symbol/9085/14 |
@kamar535 No trouble at all. Your question helped me add a new feature to |
@kaushalmodi But the feature is not needed since it was a mere CSS issue and inserting a |
No, the issue is real. Paste the below in your markdown file: a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a [^fn:1] . B b b.
ab a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a [^fn:1] . B b b.
abc a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a [^fn:1] . B b b.
abcd a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a [^fn:1] . B b b.
abcde a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a [^fn:1] . B b b.
[^fn:1]: First footnote and then change the browser window width so that the footnote ref wraps to the next line.. you will see the problem. FixHere's the fixed version of that that a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a [^fn:1]. B b b.
ab a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a [^fn:1]. B b b.
abc a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a [^fn:1]. B b b.
abcd a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a [^fn:1]. B b b.
abcde a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a [^fn:1]. B b b.
[^fn:1]: First footnote Now try the same with the fixed version. Here's what it looks after that fix: |
Aha. By habit I never put any white space before any |
Agree. I also never put a space before the fn ref or the period. But reading your question there made me think of all the pathological cases that could result in the wrapping to happen in that unwanted manner. As I am developing this package for mass consumption, I might as well not leave any room for surprises :). |
This is a cool feature someone thought of on the Hugo discourse forum. Should be easy to implement.
https://discourse.gohugo.io/t/is-it-possible-to-enforce-the-footnote-number-to-render-on-same-line-as-preceding-symbol/9085
Probably, would be simple to always insert
before the footnote number if it ends up at EOL.The text was updated successfully, but these errors were encountered: