Steps to reproduce
Each sample starts with one footnote definition of about 1,100 characters (a long citation, say), followed on the next line, with no blank line, by another block. Run each line in the developer console with an empty note open in Source mode, then look at the Outline and at Reading view.
Sample 1, a heading after the definition:
app.workspace.activeEditor.editor.setValue('[^1]: ' + 'w'.repeat(1093) + '\n# Next heading\n\nText with a reference[^1].\n')
Sample 2, a second definition after it (the usual way to write a list of footnotes):
app.workspace.activeEditor.editor.setValue('[^1]: ' + 'w'.repeat(1093) + '\n[^2]: Second footnote.\n\nText with two references[^1][^2].\n')
Did you follow the troubleshooting guide?
Yes (reproduced in a fresh vault, no community plugins).
Expected result
The same as with a short definition (change 1093 to 893 to see it): the definition ends where the next line starts, so the heading is in the Outline and both footnotes are listed with their own numbers.
Actual result
- Sample 1:
Next headingis not in the Outline and not ingetFileCache().headings. In Reading view it is drawn at the bottom of the note, inside footnote 1. - Sample 2:
[^2]: Second footnote.becomes part of footnote 1. The second reference shows as a bare2with no link, andgetFileCache().footnoteslists only footnote 1.
It depends only on where the next line’s marker sits, counted from the [ of [^1]:. The line ends the definition only when its whole marker (#, -, three backticks, [^2]:) lies within the first 1,024 characters. So a heading whose # is character 1,023 still ends it and one at 1,024 does not, and a next definition starting at character 1,019 is kept while one at 1,020 is lost. Text before the definition does not move the boundary. A blank line before the next block still ends the definition at any length.
Environment
SYSTEM INFO:
Obsidian version: 1.14.5
Installer version: 1.14.4
Operating system: Windows 11 Pro 10.0.26300
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Fresh vault, no community plugins, default theme. Also reproduced on the current Catalyst build.
Additional information
Footnote definitions written one per line with no blank line between them are common in notes imported from papers, so a single long citation hides the footnote after it, and that one can hide the next. This may be what Footnotes show in plain text, no links in preview mode (“Footnotes show in plain text, no links in preview mode”, footnotes from 20 on) ran into.
Re-paste “Show debug info” before posting.
Credit: found by @saberzero1 with the remark-obsidian parity harness; I re-checked it on 1.14.5 and the current Catalyst build.