vim-pandoc / vim-pandoc-syntax

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

Fix highlight with code in ref preceding more code #389

Open itsjunetime opened 7 months ago

itsjunetime commented 7 months ago

Right now, inline code in refs in lists looks a bit weird, and inline code in refs where there is more inline code later on in the line also looks weird. This PR should fix both of those issues, and I didn't notice any regressions in the test files due to these changes.

Here's some pictures demonstrating the changes (ignore the conceal differences, I had the cursor on the line in one picture and off in the other)

before: md_broken

after: md_fixed

itsjunetime commented 7 months ago

Just realized, this should fix #299