bryonjacob / wikimodel

Automatically exported from code.google.com/p/wikimodel
0 stars 0 forks source link

JspWikiParser: foo:bar becomes a link, even if no [braces] are used #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Parse a text containing ".... foo:bar ..."

What is the expected output? What do you see instead?
I would expect no interpretation as wiki syntax. But it becomes a link.

Original issue reported on code.google.com by max.at.x...@gmail.com on 19 Dec 2007 at 10:29

GoogleCodeExporter commented 8 years ago
It is not a bug, it is a feature. All parsers recognize URI syntax directly in 
the
text. All references are reported in the onReference(...) method. 
May be we should introduce an additional flag for the onReference(...) method in
order to distinguish explicitly marked links (like [link]) and 
implicit/recognized
URIs in the text.  

Original comment by mikhail....@gmail.com on 19 Dec 2007 at 10:50

GoogleCodeExporter commented 8 years ago
A flag "explicitLink" was added to the  method IWemListener#onReference(String
reference, boolean explicitLink). This flag  is used to distinguish explicilty
defined links (like [Hello]) and URIs recognized in the content.

Original comment by mikhail....@gmail.com on 26 Dec 2007 at 6:32