-
Notifications
You must be signed in to change notification settings - Fork 58
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
Syntax highlighting of bold, italic etc. does not work across wrapped lines #100
Comments
The word wrap setting likely adds a line break unicode char after 80 characters (to the nearest space so as to not chop up a word). If you paste the text here so I can look at it, or open it in an un-formatted text editor so you can view whats hidden by unicode escape characters. See attached a screenshot I cropped from the website I linked above showing what's likely happening. If this answers your question please close the issue yourself by pressing the close issue button, as the developer of this plugin appears to be inactive (no commits since two years ago, no resolved issues since around the same time etc.) |
Actually it's definitely a line break, I've just noticed the row numbers have no gaps, and sublime text shows 2 lines of text with no line break as a single row number the same as any other text editor. |
There is a newline, but isn't Markdown supposed to ignore newlines ( |
Markdown, as it is derived from HTML, doesn't place line breaks when viewed with formatting. This is because in HTML, even if you add a line break in the code, it won't display in the browser, however it will take effect in the code to allow for more readable code.
Example: Whereas this Line breaks like these wont affect HTML tags as they span multiple lines, but can be hit or miss with markdown's equivalent as the syntax is less structured. However none of that matters to the syntax highlighter which will stop at a line break in the code. |
Best explained with an image:
The last two examples there are just long lines that wrap around -- no line breaks. In this case my settings have
"word_wrap": true
and"wrap_width": 80
.Same happens on bold, underline etc.
The text was updated successfully, but these errors were encountered: