Skip to content
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

Whitespace is removed from between footnotes #8301

Open
Undistraction opened this issue May 13, 2020 · 5 comments · May be fixed by #16063
Open

Whitespace is removed from between footnotes #8301

Undistraction opened this issue May 13, 2020 · 5 comments · May be fixed by #16063
Labels
lang:markdown Issues affecting Markdown type:bug Issues identifying ugly output, or a defect in the program

Comments

@Undistraction
Copy link

Prettier 2.0.5
Playground link

--parser markdown

Input:

[^1]: Macdonald, H.M., 2013. Contributions of sunlight and diet to vitamin D status. Calcif. Tissue Int., 92(2), pp.163-176.

[^2]: Martineau, A.R., Jolliffe, D.A., Hooper, R.L., Greenberg, L., Aloia, J.F., Bergman, P., Dubnov-Raz, G., Esposito, S., Ganmaa, D., Ginde, A.A. and Goodall, E.C., 2017. Vitamin D supplementation to prevent acute respiratory tract infections: systematic review and meta-analysis of individual participant data. BMJ, 356, p.i6583.

[^3]: Barrett, J., Lack, L. and Morris, M., 1993. The sleep-evoked decrease of body temperature. Sleep, 16(2), pp.93-99.

Output:

[^1]: Macdonald, H.M., 2013. Contributions of sunlight and diet to vitamin D status. Calcif. Tissue Int., 92(2), pp.163-176.
[^2]: Martineau, A.R., Jolliffe, D.A., Hooper, R.L., Greenberg, L., Aloia, J.F., Bergman, P., Dubnov-Raz, G., Esposito, S., Ganmaa, D., Ginde, A.A. and Goodall, E.C., 2017. Vitamin D supplementation to prevent acute respiratory tract infections: systematic review and meta-analysis of individual participant data. BMJ, 356, p.i6583.
[^3]: Barrett, J., Lack, L. and Morris, M., 1993. The sleep-evoked decrease of body temperature. Sleep, 16(2), pp.93-99.

Expected behavior:
Blocks should be respected.

@thorn0 thorn0 added lang:markdown Issues affecting Markdown type:bug Issues identifying ugly output, or a defect in the program labels May 14, 2020
@thorn0
Copy link
Member

thorn0 commented May 14, 2020

Indeed, seems to be a bug.

From https://pandoc.org/MANUAL.html#footnotes:

Each footnote should be separated from surrounding content (including other footnotes) by blank lines.

@thorn0
Copy link
Member

thorn0 commented May 14, 2020

@Undistraction Work is currently underway to update the Markdown parser that Prettier uses. See #8140. Could you probably help with testing that PR against your Markdown documents? I'm particularly interested in testing footnotes-related issues.

@theodore-s-beers
Copy link

This behavior hasn't changed. I guess it may be intentional? Re: Pandoc, fortunately, I've found that it's tolerant of the absence of a blank line between footnotes.

@bitstein
Copy link

bitstein commented Feb 5, 2024

I still experience this bug.

@Atema Atema linked a pull request Feb 12, 2024 that will close this issue
4 tasks
@qaqland
Copy link

qaqland commented May 6, 2024

meet this bug when use mdbook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang:markdown Issues affecting Markdown type:bug Issues identifying ugly output, or a defect in the program
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants