Hi Andreas, On Jan 11, 2010, at 8:38 PM, Andreas Jonsson wrote:
Hello,
I'm looking at the grammar file for XWiki 2.0 syntax in wikimodel and noticed that syntax on the following form is explicitly allowed:
[[link containing [[image:image references]] in the text]]
From the javacc-file:
| <#REFERENCE_IMAGE: "[[image:" ("~" ~[] | ~["]"] | "]" ~["]"] )* "]]" > | <#REFERENCE: ( "[[" ( <REFERENCE_IMAGE> | "~" ~[] | ~["]"] | "]" ~["]"] )* "]]" ) > ^^^^^^^^^^^^^^^ Why is this here?
I'm guessing that this is a mistake, or am I missing something?
We allow wiki syntax inside link labels. Thus you're allowed to create a link on an image. In term of HTML this means something like: <a href="...."><img src="...."/></a> Thanks -Vincent