vim-pandoc / vim-pandoc-syntax

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

Enumerate list items starts with `(ii)`, `(iii)` etc. are not highlighted #366

Open user202729 opened 3 years ago

user202729 commented 3 years ago

Example:

1. Test
   2. Test
      (i) Test

      (i) Test **this is correctly bold**

      (i) Test **this is correctly bold**
      (i) Test **this is correctly bold**
      (ii) Test **this is not bold**

Pandoc can handle (i), (ii), (iii), ... just fine.

user202729 commented 3 years ago

Looks like that I only need to define let g:pandoc#syntax#roman_lists=1; however should this be on by default? (pandoc does support it.)

user202729 commented 3 years ago

Okay, so when it's defined, it somewhat works but not very well.

It appears that it's some experimental feature, which explains the bugs.

I need to apply the following patches

https://github.com/user202729/vim-pandoc-syntax/commit/30468049c6fc10d45ae14ce37fda35b9945128f9

https://github.com/user202729/vim-pandoc-syntax/commit/ec908dacbaabd90ede58737e1a83e9e703539fd6

The feature is disabled in https://github.com/vim-pandoc/vim-pandoc-syntax/issues/129 , but I don't understand why.