vimwiki-backup / vimwiki

Automatically exported from code.google.com/p/vimwiki
1 stars 1 forks source link

Raw links in definition lists are converted to HTML with syntax errors #389

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Create a raw link to an external http:// resource in a plain paragraph.

2. Create the same raw link as a part of a definition list's DD element.

Example markup:

A raw link in plain paragraph: http://www.domain.tld/

A raw link in a DD: ::
:: Web: http://www.domain.tld/

3. Convert the wiki page to HTML

What is the expected output? What do you see instead?

Actual HTML markup:
<p>
A raw link in plain paragraph: <a 
href="http://www.alexander-auto.com/">http://www.alexander-auto.com/</a>
</p>

<dl>
<dt>A raw link in a DD: </dt>
<dd>Web: <a 
href="http://www.alexander-auto.com/</dd>">http://www.alexander-auto.com/</dd></
a>
</dl>

Expected HTML markup:

<p>
A raw link in plain paragraph: <a 
href="http://www.alexander-auto.com/">http://www.alexander-auto.com/</a>
</p>

<dl>
<dt>A raw link in a DD: </dt>
<dd>Web: <a 
href="http://www.alexander-auto.com/">http://www.alexander-auto.com/</a></dd>
</dl>

What version of the product are you using? On what operating system?

Vimwiki version: 2.0.1
VIM version: 7.3.429
OS: Ubuntu 12.04 32-bit
Xfce 4.8

The issue is not occurring if I enclose the raw link with [[ and ]]

Original issue reported on code.google.com by atanas.v...@gmail.com on 28 Nov 2012 at 9:19

GoogleCodeExporter commented 8 years ago
thx.

Original comment by habamax on 9 Dec 2012 at 9:49

GoogleCodeExporter commented 8 years ago
I can reproduced this.  Thanks!

Another temporary fix is to add a space character to the end of the line.

Original comment by stu.andrews on 27 Dec 2012 at 9:00