MacDownApp / MacDownApp/macdown
Linefeed in footnote interpreted as end of footnote
Nobody has claimed this yet.
- Dominant language
- Rich Text Format
- Stars
- 9.8k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
A single linefeed is generally interpreted the same as a space. However, inside a footnote, it is interpreted as the end of the footnote.
MWE follows.
-----
MWE:
A lone linefeed continues the previous line.
But it's different in a footnote.[^1]
[^1]: This footnote has two sentences on the same line. As expected, both sentences are part of the footnote.
Now let's continue the main text.[^2]
[^2]: In this footnote, the following sentence starts on a separate line.
Unfortunately, the continuation sentence is broken away from the footnote.
And this is the end of the main text.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the supplied MWE in MacDown and compare how a linefeed is handled in ordinary text versus a footnote. Trace the footnote parsing or rendering path and verify that the continuation sentence remains inside the footnote while the main text remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100