Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown format characters don't follow words for line breaks #423

Closed
Ductapemaster opened this issue Feb 27, 2017 · 3 comments
Closed

Markdown format characters don't follow words for line breaks #423

Ductapemaster opened this issue Feb 27, 2017 · 3 comments

Comments

@Ductapemaster
Copy link

I've been writing a lot of notes in markdown recently and I realized that the line break behavior when using formatting characters is a bit odd.

The heart is the issue is that the formatting characters do not line break with the attached words (which only happens in the first and last word of a formatted string). The issue is clearly demonstrated in the following screenshots:

incorrect1
incorrect2

In both of these cases, I would expect the formatting underscores (or any other formatting character) to follow the word that they are attached to so you don't have dangling formatters on another line.

Is this something that can be fixed in the extension, or is it deep in ST?

@felixhao28
Copy link
Contributor

It has something to do with the grammar definition which separates the underscores from the actual text inside to apply different styles. Maybe it can be improved but I am avoiding changing the grammar file before #324.

@Ductapemaster
Copy link
Author

No problem, thank you!

@deathaxe deathaxe added C: ST issue Category: Sublime Text Core issue or limitation and removed enhancement labels Jul 27, 2021
@deathaxe
Copy link
Member

Indeed a duplicate of #395

@deathaxe deathaxe added duplicate and removed C: ST issue Category: Sublime Text Core issue or limitation labels Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants