stm2 / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

a href not converted on HTML to mediawiki #138

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Input:

<a href="http://www.google.com/">link</a>

Output:

[[link]]

[quick] Fix:

In ATag.content(), add the following:

...
resultBuffer.append(openStr);
if (openStr.equals("[[")) {
    resultBuffer.append(hrefStr);
    resultBuffer.append(" ");
}
// no wiki tags inside wiki links:
...

Original issue reported on code.google.com by bowm...@gmail.com on 1 Mar 2013 at 2:49

GoogleCodeExporter commented 8 years ago
Sorry, the fix is actually more like this. An external link should only have 
one square bracket surrounding. https://gist.github.com/bowmanb/5062183

Original comment by bowm...@gmail.com on 1 Mar 2013 at 3:05

GoogleCodeExporter commented 8 years ago
The previous fix doesn't solve the issue for all conversion targets. Please 
disregard.

Original comment by bowm...@gmail.com on 1 Mar 2013 at 5:47

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 13 May 2013 at 4:10