SublimeText-Markdown / MarkdownEditing

Powerful Markdown package for Sublime Text with better syntax understanding and good color schemes.
MIT License
3.17k stars 649 forks source link

Remove blank spaces critic markup snippets #711

Closed luispuerto closed 1 year ago

luispuerto commented 1 year ago

Hey!

I believe that for the markup to work properly shouldn't be any blank space between the text and the markup. When you leave spaces on the markup it isn't rendered correctly, specially when it interacts with the other blank spaces.

On the creator repo there are not blank spaces better the desired text to be markup and the markup itself. For example

Deletions are denoted with a similar syntax. The text to be deleted is surrounded with curly braces and double hyphens.

Lorem{‐‐ ipsum‐‐} dolor sit amet…

The word "ipsum" and a space character are marked for deletion in the above example. These deletions are rendered as <del> tags in the processed HTML.

Lorem<del> ipsum</del> dolor sit amet…

The space is select for deletion too, and if there were space between the selected text and the markup this wouldn't work.

deathaxe commented 1 year ago

The commit of this PR has been cherry picked into MarkdownEditing 3.1.9