vim-pandoc / vim-pandoc-syntax

pandoc markdown syntax, to be installed alongside vim-pandoc
MIT License
424 stars 61 forks source link

Highlighting of indented math and concealing ends, but keeping character count. #318

Open mumblingdrunkard opened 4 years ago

mumblingdrunkard commented 4 years ago

I can not for the life of me figure out why the plugin stops highlighting the math blocks after it is indented more than 3 spaces. It makes it really annoying to use when doing lists and I want a formula within that list. Inline highlighting still works unless the opening of the math is at the beginning of a new line.

Example

The math block on line 29 is not being highlighted and neither is the inline math in the table. On the same note, maybe not conceal latex inside tables as it ruins the alignment or maybe add some spacing after to compensate. This would have to be rather clever though.

I'd also like to be able to set if the characters around bold text ** and __ should be hidden with one or two spaces as it makes it easy for neatly aligning tables with bold text. Right now I have just disabled the conceal of __ and use that to get bold text in tables.

Example of conceal changing the alignment of tables

I've looked around forever, but can't seem to find anything on this.

PeterlitsZo commented 4 years ago

yes, it worry me too...

alerque commented 4 years ago

Can you please split this into two issues? The math highlighting at >= 3 indent and the possible changes to conceal characters are completely separate and would need to be addressed and tracked separately. I suggest editing this issue to just show one of the problems and copying the other topic to a new issue. Thanks.