Closed yangwenbo99 closed 10 months ago
Well, the current region is not sufficient (example below) and I haven't found a good way except match+region, like it is now, that captures all italic scenarios and provides concealment.
This is how it looks if we just comment out the match:
It seems that when a citation contains underscores![image](https://github.com/kaarmu/typst.vim/assets/6561834/0b2e8159-ada3-40a0-aa45-32f09e0b652f)
_
, and there is some italic text in the same paragraph, the highlight of the whole paragraph simply disappear. Going back to the old way of highlighting italic seems to fix the issue, but I am not sure whether this will create more issues.Also, the regex for
typstMarkupItalic
seems to have some problem interacting with my math highlight code. Commenting it out seems to mitigate #64.