kepano / obsidian-minimal

A distraction-free and highly customizable theme for Obsidian.
https://minimal.guide
MIT License
3.49k stars 186 forks source link

square brackets in link text breaks link rendering in preview mode #740

Closed depressiveRobot closed 1 month ago

depressiveRobot commented 1 month ago

Is the bug present when using the default Obsidian theme?

Yes

Is the bug present when snippets and plugins are disabled?

Yes

Minimal theme version

7.5.4

Describe the bug

If the link text contains square brackets, the rendering of the link (text) breaks in preview mode: square brackets will be displayed at the beginning and end of the link text, see screenshot:

Screenshot 2024-06-04 at 13 15 15

Rendering in reading mode is correct (no square brackets shown at beginnging/end of link text). The bug is present with default Obsidian theme, too (tested in sandbox vault).

Debug info

SYSTEM INFO: Obsidian version: v1.5.12 Installer version: v1.5.11 Operating system: Darwin Kernel Version 23.5.0: Wed May 1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103 23.5.0 Login status: not logged in Insider build toggle: off Live preview: on Base theme: light Community theme: Minimal v7.5.4 Snippets enabled: 3 Restricted mode: off Plugins installed: 25 Plugins enabled: 25 1: Calendar v1.5.10 2: Dataview v0.5.66 3: Templater v2.3.3 4: Tag Wrangler v0.6.1 5: Text Format v3.0.5 6: Sortable v0.3.1 7: Natural Language Dates v0.6.2 8: Settings Search v1.3.10 9: Reveal Active File Button v2.0.3 10: Paste URL into selection v1.7.0 11: Quick Switcher++ v4.2.1 12: Janitor v1.0.7 13: Various Complements v10.0.0 14: Obsidian Better Internal Link Inserter v1.0.0 15: Minimal Theme Settings v7.5.0 16: Better footnote v1.0.1 17: Buttons v0.5.1 18: File Info Panel v1.3 19: Auto Link Title v1.5.4 20: Hider v1.3.1 21: Copy document as HTML v0.7.0 22: Style Settings v1.0.8 23: Copy Block Link v1.0.4 24: Image Context Menus v1.7.1 25: Text Focus v1.0.0

kepano commented 1 month ago

This is not a Minimal issue since it's reproducible in default theme