| Summary: | Confluence rendering of link tag is broken (e.g. [http://google.com|http://yahoo.com]) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Mark <markwoon+eclipse> | ||||
| Component: | Mylyn | Assignee: | Project Inbox <mylyn-triaged> | ||||
| Status: | RESOLVED WONTFIX | QA Contact: | David Green <greensopinion> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 1.5 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
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. |
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