Wrong Heading Display in Internal Link Preview

When linking to a specific heading of any given internal note, the link preview pop up will display the heading twice, which is not only distracting, but actually occupies a lot of precious vertical real-estate in the pop-up.

I have tried disabling all plugins, and the bug persists.

Steps to reproduce

Perform an internal link to a specific heading of any given note, like [[note 1#chapter 2]]

Expected result

The internal link preview popup should display:

Chapter 2

“Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.(…)”

Actual result

The internal link preview displays the heading twice, with 2 H1s, or one H1 followed by a H2 if the quoted heading is H2:

Chapter 2

Chapter 2

“Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.(…)”

Environment

  • Operating system: Windows 11

  • Debug info: SYSTEM INFO:
    Obsidian version: v1.1.8
    Installer version: v0.15.6
    Operating system: Windows 10 Home 10.0.22621
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: light
    Community theme: Minimal v6.1.11
    Snippets enabled: 3
    Restricted mode: off
    Plugins installed: 17
    Plugins enabled: 16
    1: Admonition v9.0.5
    2: Advanced Tables v0.18.1
    3: Annotator v0.2.8
    4: Contextual Typography v2.2.4
    5: Copy Image and URL context menu v1.4.0
    6: Dataview v0.5.47
    7: Dictionary v2.22.0
    8: Icon Folder v1.5.0
    9: LanguageTool Integration v0.3.3
    10: Minimal Theme Settings v6.1.1
    11: Ninja Cursor v0.0.9
    12: Reading Time v1.1.1
    13: Recent Files v1.3.5
    14: Smart Typography v1.0.18
    15: Style Settings v0.4.12
    16: Tasks v1.20.0


thanks

will be fixed 1.1.9

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.