MacDownApp / MacDownApp/macdown

Linefeed in footnote interpreted as end of footnote

Open
#982 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

upstream
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.