jdanielmourao/obsidian-sanctum

Bug: Wrapping text in markdown highlight sometimes introduces nonbreaking spaces

living-creatures opened this issue · 0 comments

Bug Description

Sometimes, seemingly randomly, wrapping text in markdown highlight tags (==) in Obsidian "Live Preview" and/or "Source mode" in the editor can introduce a random nonbreaking space character into a word. (See the attached screenshot.) It doesn't seem to matter which font is set as primary text font within Obsidian.

Obsidian bug

Switching to the default Obsidian theme seems to make the random, nonbreaking space disappear. Similarly, switching to "Reading" mode in the editor makes the nonbreaking space disappear.

screen 2023-07-30 at 11 00 59 AM

To Reproduce

This issue is not easily repeatable, and it's not clear why the nonbreaking spaces are being inserted.

Expected behavior

Wrapping text in Markdown highlight tags should not introduce nonbreaking spaces into the block of text in any editor mode.

Relevant Screenshot(s)

See above.

Obsidian Version

1.3.5

Installer Version

1.3.5

Font Size

22

Which editor are you using?

  • New Editor
  • Legacy Editor

In which mode(s) does the problem occur? (if applicable)

  • Reading View (Preview)
  • Editing View - Source Mode
  • Editing View - Live Preview

Which operating system?

  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Checklist

  • I updated to the latest version of the theme (Settings → Appearance → Themes - Manage → Update).
  • I made sure that the issue is related to this theme by checking that the problem does not occur with the default theme.
  • If the bug occured after updating the theme, I read the last couple Releases to make sure the bug is not an intentional change.

Additional Context

No response