Sublime Forum

I think it looks better if h1 (===...) and h2 (---...) is bold in Markdown syntax highlight

#1

I usually use the “===…” format for h1 heading, and the “—…” format for h2 heading, like the above sample image. If they can be in bold, I think it looks better.

How about you?

0 Likes

#2

Unfortunately, this is not possible because Sublime’s parser only examines one line at a time.

1 Like

#3

It was a bit disappointing to hear that, but that’s not a big deal, I’ll still use Sublime Text.

0 Likes

#4

I guess it may be possible to write a plugin that will use the view.add_regions method to achieve this, but I’m not sure if that method can affect styles to make the heading text bold or not.

0 Likes

#5

It can’t. You can underline, outline or fill the background of the heading, however.

0 Likes