vim-markdown icon indicating copy to clipboard operation
vim-markdown copied to clipboard

Syntax highlight bug with titles (using =====) that start with a number followed by a period.

Open trusktr opened this issue 12 years ago • 1 comments

I found a bug with markdown syntax highlighting. It's a bug with vim's default markdown highlighting, but Ii thought maybe you could fix it with this plugin.

The bug is that titles beginning with a number and a period aren't highlighted. For example, the following title won't be highlighted.

3. ROJECT ORGANIZATION
========================

Some text. blah blah blah.

But it works if I change the number to a letter or remove the period, like in the following two examples.

III. ROJECT ORGANIZATION
========================

Some text. blah blah blah.
3 ROJECT ORGANIZATION
========================

Some text. blah blah blah.

Would you mind considering these scenarios in your syntax file?

trusktr avatar Oct 12 '13 22:10 trusktr

The support for underlined headers is a janky hack at best, often rendering inconsistently during screen redraws and whatnot. This is definitely a bug but I'm not optimistic about there being a fix.

tpope avatar Oct 12 '13 22:10 tpope