vim-pandoc / vim-pandoc-syntax

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

[](){target="_blank"} triggers emphasis. #290

Open stroobandt opened 5 years ago

stroobandt commented 5 years ago

A link anchor with a target attribute as in [](){target="_blank"} triggers emphasis. By consequence, the remainder of the document gets printed in italics without any colour.

According to the W3C, any of the following target values may cause this undesired effect. This includes frame names containing an underscore.

Value Description
_blank Opens the linked document in a new window or tab
_self Opens the linked document in the same frame as it was clicked (this is default)
_parent Opens the linked document in the parent frame
_top Opens the linked document in the full body of the window
framename Opens the linked document in a named frame
p3palazzo commented 3 years ago

Any URL that has underscores at the beginning or end of "words" (i.e. next to a non-[a-z] character) also causes this behavior. Quite annoying. Workaround for now: insert something like <!--,_--> anywhere to close the italics.