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

Intra-word underscores need proper support

Open alerque opened this issue 5 years ago • 3 comments

PR #269 attempted to fix this, but we had to revert the change (14c778e) because it caused other more serious problems (see #285).

At some point an implementation that doesn't break everything would be great!

alerque avatar May 16 '19 18:05 alerque

At some point an implementation that doesn't break everything would be great!

Yep.

it would be great

fmoralesc avatar May 16 '19 18:05 fmoralesc

Intraword underscores are specifically not a part of the Pandoc Markdown standard, which suggests using intraword stars for emphasis, which also is incorrect in this plugin (an inadvertently caused many of my students to misinterpret the standard because it looks so ugly even when done properly). I recommend to them not to use intraword emphasis at all because it makes their whole page colored incorrectly, which is a shame really because a lot of work went into making that work with Pandoc.

pandoc-plugin

pandoc-plugin-bug

rwxrob avatar Jul 29 '19 00:07 rwxrob

Related to this is underscores in link URLs, for example https://commons.wikimedia.org/wiki/File:Wooden_roof_structure,_132,_ubt.JPG. Because some underscores are placed between a letter/figure and a punctuation mark, they are not technically intraword, but should nevertheless not trigger vim-pandoc-syntax to treat them as the start of an italicized string, as they do now.

p3palazzo avatar Aug 27 '21 15:08 p3palazzo