-
Notifications
You must be signed in to change notification settings - Fork 0
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 highlighting doesn't work as it should #13375
Comments
Comment by redmunds You could create a Language in Brackets to use the CodeMirror mode, but I prefer using the Markdown Preview extension to see both the raw and formatted text at the same time. |
Comment by mkoske I have Markdown Preview -extension installed, but I want also proper highlighting while writing. I got it partially solved by installing Brackets Themes -extension and choosing theme right theme. So it seems to be theme problem partially. But then, if I hard-wrap words, the highlighting breaks, at least with lists so it's not problem only with theme. |
Comment by petetnt I agree with As in
instead of |
Comment by petetnt Oh, it's a bug: See /*
* Temporarily override bold and italic syntax highlighting until
* SourceCodePro supports them in a fixed pitch
*/
span.cm-em {
font-style: normal;
}
span.cm-header, span.cm-strong {
font-weight: normal;
}
span.cm-emstrong {
font-style: normal;
font-weight: normal;
} Not sure if it has been fixed yet, the bolded letters seem to be very blurry but italics look okay?
|
Comment by mkoske I use Ttcn theme, and it works to some extent, e.g. I get bold text and italics too. But when I try to have list with hard-wrapped text, like this:
highlighting breaks. Hard-wrapped lines and item after that are not highlighted correctly. It works on the Codemirror demo-page I linked to in my first message. So there's a bug somewhere. |
Comment by russianhun I see this issue is closed for years, yet none of the problems seem to have been solved. I came here searching for a solution to this exactly. Ended up having to manually override the codemirror overrides mentioned above for bold and italic items to correctly display in the editor. It does look good now, with no fuzziness so I guess this was an oversight? |
Comment by russianhun Sorry, my bad, don't know why I saw "closed" written on a green background... :) Anyway, this should be easy enough to solve now... |
Issue by mkoske
Saturday Sep 12, 2015 at 13:47 GMT
Originally opened as adobe/brackets#11691
Hello,
I have been trying to ask this on IRC, but I'll write my question here too.
So, why Markdown syntax highlighting is not working? In Codemirror, when you surround text with - for example - two asterisks to make text bold, it becomes bold, but when doing same in Brackets, it has no effect.
See Markdown-mode demo here:
http://codemirror.net/mode/markdown/index.html
I write a lot using Markdown and I would like to have proper syntax highlighting for it.
The text was updated successfully, but these errors were encountered: