OneDark-Pro icon indicating copy to clipboard operation
OneDark-Pro copied to clipboard

Markdown underscore-style headers

Open Huxpro opened this issue 6 years ago • 9 comments
trafficstars

Markdown supports alternative style of writing headers via underscores:

Header 1
======

Header 2
---------

It would be nice to have those highlighted as # Header1 and ## Header2 ;)

Huxpro avatar Jul 01 '19 07:07 Huxpro

hard to do that, because their scope is same image image image

Binaryify avatar Jul 09 '19 11:07 Binaryify

I am not familiar with TextMate grammar but doesn't it provide any means to lookahead for next line? it would be things like /.+\\n_+

Huxpro avatar Jul 10 '19 20:07 Huxpro

hmm but it's probably a issue of markdown extension of vscode

Huxpro avatar Jul 10 '19 20:07 Huxpro

Screen Shot 2019-07-10 at 1 50 56 PM

It appears that I do have different TM scope for the "lines" so theme Dark+ can at least highlight the line for me where this theme does not. (This should be easy to fix though)

Screen Shot 2019-07-10 at 1 52 32 PM

Huxpro avatar Jul 10 '19 20:07 Huxpro

if just highlight the lines, that would be easy, will add that in next version

Binaryify avatar Jul 11 '19 02:07 Binaryify

just release a new version, you can check it now~

Binaryify avatar Jul 11 '19 03:07 Binaryify

It works. Thx! Should I keep this open in terms of highlighting both texts and lines or not?

Huxpro avatar Jul 12 '19 06:07 Huxpro

you can keep it open before vscode improve this

Binaryify avatar Jul 12 '19 06:07 Binaryify

That'd be awesome for us reStructuredText freaks too ;)

silopolis avatar May 26 '23 12:05 silopolis