Community
Participate
Working Groups
Build Identifier: wikitext-standalone-1.6.0-SNAPSHOT The escape character "\" only works for curly braces in the confluence language not for all special characters. For example the text "\-Hello World-" is rendered as "<p>\-Hello World-</p>" and not as "<p>-Hello World-</p>" Reproducible: Always Steps to Reproduce: MarkupParser markupParser = new MarkupParser(new ConfluenceLanguage()); String htmlContent = markupParser.parseToHtml("\\-Hello World-"); System.out.println(htmlContent);
I tried out your example on the "Confluence sandbox":http://sandbox.onconfluence.com/dashboard.action?os_username=sandbox&os_password=sandbox The rendering that you observed is consistent with the way that Confluence works.