Community
Participate
Working Groups
Build Identifier: NA Running this: MarkupParser markupParser = new MarkupParser(new ConfluenceLanguage()); StringWriter writer = new StringWriter(); HtmlDocumentBuilder builder = new HtmlDocumentBuilder(writer); // avoid the <html> and <body> tags builder.setEmitAsDocument(false); markupParser.setBuilder(builder); markupParser.parse("[http://google.com|http://yahoo.com]"); System.out.println(writer.toString()); Produces: <p><a href="http://yahoo.com"><a href="http://google.com">http://google.com</a></a></p> Instead, it should render: <p><a href="http://yahoo.com">http://google.com</a></p> Reproducible: Always
Forgot to mention that this is with standalone wikitext version 1.6.
Thanks for the bug. The workaround is to avoid hyperlinks in Confluence hyperlink labels. In this example, try @[google.com|http://yahoo.com]@ (don't include "http://" in the hyperlink label)
Created attachment 207339 [details] mylyn/context/zip
Closed as part of backlog clean-up. Please re-open if you'd like to see this revisited, perhaps with a contribution.