habamax / vim-asciidoctor

Asciidoctor plugin for Vim
MIT License
181 stars 16 forks source link

Detecting the end of a link #80

Closed whnr closed 3 years ago

whnr commented 3 years ago

I have many links in my personal asciidoc collection that are followed by some punctuation. Example: link:https://foobar/[Barfoo],. If there is anything but a space at the end of the closed square bracket, the title will be highlighted like an extended link.

Suggestion: Extend the highlighting logic a bit more just to highlight until the next closed square bracket, regardless of what comes next. grafik

habamax commented 3 years ago

hmm image

what are your asciidoctor settings?

habamax commented 3 years ago

Yes, you're right

image

I usually use it with let g:asciidoctor_syntax_conceal = 1 where there is no such issue

whnr commented 3 years ago

Yes, with asciidoctor_syntax_conceal it works. And I finally figured out that I have to set that and conceallevel = 2 to make pretty pages!

habamax commented 3 years ago

image