Community
Participate
Working Groups
Build Identifier: mylyn-wikitext-standalone-3.5.0.I20110104-0100 When using '[]' syntax for sub/superscript, the '[', ']' are not dropped from the output. Ex: input: b[^n^] output: b[<sup>n</sup>] expected output: b<sup>n</sup> input: b[~n~] output: b[<sub>n</sub>] expected output: b<sub>n</sub> Reproducible: Always
Thanks for the bug report. Can you please clarify what markup language you're using?
(In reply to comment #1) > Thanks for the bug report. Can you please clarify what markup language you're > using? Sorry, I forgot to mention that the problem appears for Textile. Using MarkupParser programatically: public String toHtml(String textileContent) { StringWriter writer = new StringWriter(); HtmlDocumentBuilder builder = new HtmlDocumentBuilder(writer); builder.setEmitAsDocument(false); MarkupParser parser = new MarkupParser(); parser.setBuilder(builder); parser.setMarkupLanguage(new TextileLanguage()); parser.parse(textileContent); return writer.toString(); } Best Regards, Alex D
Using [] is a Textile 2.0 expression to allow for inline tags. Normally, Textile requires surrounding whitespace for tags. Eg: =="one *two* three"== however in some cases the tags are desired mid-word, for example =="one*two*three"==. Textile 2.0 supports this via syntax like this: =="one[*two*]three"==
sorry, this one didn't make it for Indigo.
Created attachment 198299 [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.