vim-pandoc / vim-pandoc-syntax

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

Bold, italic, and newline #86

Open notnotrandom opened 10 years ago

notnotrandom commented 10 years ago

In gvim, not using conceal, the following snippet:

***foo
bar*** baz

causes "foo\nbar" to be shown in bold italics, but "baz" will be shown in bold! This does not happen if the text is all in one line. In that scenario, "foo bar" is shown again in bold italics, but "baz" is now properly shown in regular style. Bug, I presume? :-)

fmoralesc commented 10 years ago

Yes, and a nasty one. See this:

 ***foo
 bar*** baz ***test* a**
thriveth commented 10 years ago

Same here, also using conceal:

Here's with the thing on two lines

selection_010

And here's when it's only on one line: selection_011

fmoralesc commented 10 years ago

This bug is a regression from commit 07d9764de3125052b126f4850cc68a1c409ce470. I'm trying to find a good fix.

fmoralesc commented 10 years ago

I think I found a fix. Please confirm.

thriveth commented 10 years ago

I get that this works:

***foo bar*** baz ***test* 
a** something

But not this:

***foo bar*** baz ***test** 
a* something

neither with or without newline.

fmoralesc commented 10 years ago

Yes, I saw that in my tests, and am working on it.