Block ID links to footnotes broken

Steps to reproduce

  1. Create a note with the content below. (Note: Lorem inpsum paragraphs are included to showcase the jumping behavior from block ID links to lines with footnote detail e.g. from [[#^fn1]] to [^1]: text ^fn1).
Note content

test-case.md (4.1 KB)

text [^1]
text [^2]
text [^3]

[[#^fn1]]
[[#^fn2]]
[[#^fn3]]

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin felis ex, consequat id dictum cursus, pharetra malesuada elit. Fusce congue auctor nulla. Nam ultricies porta metus id pellentesque. Etiam feugiat tempus lacinia. Curabitur mollis quam ac iaculis imperdiet. Morbi et metus sed turpis condimentum efficitur eget non eros. Pellentesque ultricies consequat libero, semper dictum velit. Nunc congue arcu quis mi vehicula, non commodo velit pulvinar. Suspendisse ante ipsum, interdum vel placerat ac, pharetra vitae sem.

Praesent in luctus nibh. Aliquam et ullamcorper odio. Morbi molestie elit in magna semper, at gravida libero rutrum. Vivamus laoreet massa eu est facilisis elementum. Pellentesque a nunc sed leo congue pharetra. Sed lobortis vulputate elit, in luctus turpis auctor vitae. Suspendisse odio mi, congue ac malesuada a, fringilla et nibh. Mauris felis felis, ultrices nec tortor ac, ornare elementum enim. Donec bibendum posuere dui ut tincidunt. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla nulla sapien, pulvinar et arcu quis, imperdiet mollis mi. Integer maximus lobortis lacinia.

In lorem nisl, iaculis dictum maximus non, aliquet sit amet urna. Etiam ut molestie arcu. Nullam luctus libero sapien, a facilisis ante ultrices non. Morbi placerat porttitor venenatis. Nulla placerat ultricies enim, blandit auctor ligula volutpat sed. Sed felis velit, posuere et maximus dictum, aliquam ut mauris. Sed diam dui, dapibus volutpat dapibus id, porta non nisl. Vivamus eget tincidunt lorem. Suspendisse semper consectetur nisl, vel mattis nulla maximus eget. Sed eget lectus dolor. Ut et neque quis ante finibus vehicula nec eget leo. Pellentesque tincidunt justo magna. Mauris congue pharetra magna ut commodo. Quisque neque elit, sagittis a arcu nec, facilisis lacinia diam.

Nam laoreet malesuada aliquet. Proin lacinia, leo eu scelerisque viverra, tellus mi accumsan elit, vel euismod lectus eros eget ex. Maecenas eu finibus purus. Sed porttitor scelerisque maximus. Phasellus tempor cursus neque in interdum. Aliquam vel molestie dolor. Curabitur turpis lacus, ultricies et pretium et, feugiat nec nunc. Donec ac ligula et diam lobortis pulvinar. Aliquam eleifend neque ac ullamcorper posuere. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec vehicula tincidunt velit, a imperdiet tortor tincidunt quis. Vivamus porttitor maximus mauris, in mattis augue dapibus id. Ut eu magna a magna scelerisque mattis.

Cras dolor libero, fringilla non ante quis, convallis sagittis velit. Fusce erat ex, imperdiet a nisl in, sagittis sollicitudin elit. Suspendisse commodo nibh et elit lobortis laoreet. Duis malesuada ligula a imperdiet sodales. Vestibulum et ligula leo. Donec sed urna nec est facilisis gravida nec id ex. Maecenas accumsan lorem et ipsum tempus, non tempus risus lacinia. Aliquam posuere nulla facilisis accumsan pretium. Donec a laoreet ante. Donec molestie neque nec lacinia vehicula. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut bibendum libero et dui ullamcorper congue. Quisque sed posuere tellus. Mauris congue nisl eget ornare venenatis. Praesent eu egestas leo.

Etiam blandit dictum lobortis. Nulla eu nibh laoreet, auctor lorem a, sodales nibh. Duis posuere, purus viverra lobortis placerat, est lacus fermentum nisi, quis imperdiet lorem purus vel dui. Fusce finibus lacus et massa aliquam, quis condimentum sem porta. Quisque id mattis sem, at ornare velit. Praesent dapibus elit ut justo suscipit ornare. Mauris sed quam eu mauris commodo facilisis. Aliquam vel massa quis dolor semper fringilla convallis id quam. Cras ut feugiat massa, a interdum elit. Vestibulum sed tincidunt nibh. Morbi malesuada quam eget dolor iaculis ornare. Donec convallis arcu a libero pellentesque efficitur vitae vel eros. Praesent vitae blandit magna. Ut a posuere elit. Nullam ut erat odio. Etiam sed fermentum mi, ac faucibus turpis.

[^1]: Footnote 1 ^fn1

[^2]: Footnote 2 ^fn2

[^3]: Footnote 3 ^fn3
  1. In Reading view, click on links to ^fn1, ^fn2 and ^fn3.
  2. In Reading view, bring up a page preview for links to ^fn1, ^fn2 and ^fn1.
  3. In Reading view, switch to edit mode within page preview for links to ^fn1, ^fn2 and ^fn3 by clicking on the page preview.
  4. In Live Preview, click on links to ^fn1, ^fn2 and ^fn3.
  5. In Live Preview, bring up a page preview for links to ^fn1, ^fn2 and ^fn1.
  6. In Live Preview, switch to page preview edit mode for links to ^fn1, ^fn2 and ^fn3 by clicking within the page preview.
  7. In Live Preview or Reading, add ! before [[#^fn1]], [[#^fn2]] and [[#^fn3]]

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Numbers denote the corresponding step in Steps to reproduce:

  1. Links to ^fn1 and ^fn2 highlight footnote detail line in yellow.
  2. Page preview for links to ^fn1, ^fn2 and ^fn3 shows block content.
  3. Page preview edit mode for link to ^fn3 shows block content.
  4. Link to ^fn3 highlights footnote detail in yellow.
  5. Page preview for links to ^fn1, ^fn2 and ^fn3 shows block content.
  6. Page preview edit mode for link to ^fn3 shows block content.
  7. Embeds show block content.

Actual result

Numbers denote the corresponding step in Steps to reproduce:

  1. Links to ^fn1 and ^fn2 jump to footnote detail line but don’t highlight it in yellow. Link to ^fn3 jumps to footnote detail line and highlights it in yellow.
  2. All page previews are blank.
  3. For links to ^fn1 and ^fn2, the page preview edit mode shows block content. For link to fn3, the page preview edit mode remains blank.
  4. Links to ^fn1 and ^fn2 jump to footnote detail and highlight it in yellow. Link to ^fn3 jumps to footnote detail but doesn’t highlight it in yellow.
  5. All page previews are blank.
  6. For links to ^fn1 and ^fn2, the page preview edit mode shows block content. For link to fn3, the page preview edit mode is blank.
  7. Embeds are blank.

Environment

SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.7.7
Operating system: Darwin Kernel Version 20.6.0: Thu Jul 6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 20.6.0
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: off
Plugins installed: 4
Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

Might be related: