vim-pandoc-syntax icon indicating copy to clipboard operation
vim-pandoc-syntax copied to clipboard

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

Open stroobandt opened this issue 6 years ago • 1 comments

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

stroobandt avatar Jun 01 '19 06:06 stroobandt

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.

p3palazzo avatar Nov 17 '20 20:11 p3palazzo