Bold, Underline, Highlight, etc, should not be triggered when there are whitespaces between the markers and the text

Steps to reproduce

in the last line there is a space between last char and ==

turn on preview mode

Expected result


Actual result



  • Operating system:
    Windows 10
  • Obsidian version:
    Obsidian 0.11.12

If we want to be commonmark compliant, the preview is right and the editor is wrong in this case

In case of bold **, both our editor and our preview are wrong.