Hi,
I add a test case for escaped symbol, but it does not pass. The test
case is like below. The xhtmlparser only realize the "[" "]" as the
SpecialSymbol.
.#------------------------------------------------------------------------------
.input|xwiki/2.0
.#------------------------------------------------------------------------------
\[notlink\]
.#-----------------------------------------------------
.expect|event
.#-----------------------------------------------------
beginDocument
beginParagraph: []
onEscape: [[]
onWord: [notlink]
onEscape: []]
endParagraph: []
endDocument
.#-----------------------------------------------------
.expect|xhtml
.#-----------------------------------------------------
<p>[notlink]</p>
.#-----------------------------------------------------
.expect|xwiki
.#-----------------------------------------------------
\[notlink\]
.#-----------------------------------------------------
.input|xhtml/1.0
.#-----------------------------------------------------
<html><p>[notlink]</p></html>
I see the class WikiModelXHTMLParser can handle the escaped symbols,
by add them like
return new XhtmlParser(Arrays.asList("**", "~~", "##",
"--", "__",
"^^", ",,"));\
How about add [ ] in it, like
return new XhtmlParser(Arrays.asList("**", "~~", "##",
"--", "__",
"^^", ",,", "[", "]"));
Thanks
Wang Ning