You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A sentence with a footnote.[^target]
[^target]: Target text
, depending on the line width, the period may be rendered at the end of a line and the footnote number on the next line.
Would be great if Blackfriday would enforce the footnote number to be rendered on the same line as the preceding word (including any trailing punctuation).
I came up with a solution in Hugo where I used a regexp to wrapp the generated footnote.<sup class="footnote-ref"> ... </sup> inside a <span class="footnote">footnote.<sup class="footnote-ref"> ...</sup></span> and the following css:
span.footnote {
white-space: nowrap;
}
Would be great if this could be added as an option to Blackfriday.
The text was updated successfully, but these errors were encountered:
When there is no white space before the footnote tag there is no issue.
A sentence with a footnote.[^target]
This will (if not tweaked by CSS) always render the footnote on the same line as the preceding footnote..
But as discussed here there are still cases that might be handled by Blackfriday. Whenever there is whitespace before the footnote markup, for example:
A sentence with a footnote. [^target]
, the footnote may be rendered on the next line.
By replacing any whitespace before the [^target] markup with as in for example:
A sentence with a footnote. [^target]
, this will force the footnote to be rendered on the same line as the preceding non-whitespace text footnote.
For the following markdown:
, depending on the line width, the period may be rendered at the end of a line and the footnote number on the next line.
Would be great if Blackfriday would enforce the footnote number to be rendered on the same line as the preceding word (including any trailing punctuation).
I came up with a solution in Hugo where I used a regexp to wrapp the generated
footnote.<sup class="footnote-ref"> ... </sup>
inside a<span class="footnote">footnote.<sup class="footnote-ref"> ...</sup></span>
and the following css:Would be great if this could be added as an option to Blackfriday.
The text was updated successfully, but these errors were encountered: