[BREAKS BUILD] Links to pictures. Problem is, URIChunk thinks that index.jpg is a hyperlink to http://index.jp.
Also, commented out the code that was hiding rendering errors. This should be done at a different level.
This commit is contained in:
parent
1d82582c3b
commit
d6fe54f4ad
9 changed files with 114 additions and 55 deletions
|
@ -38,10 +38,13 @@ module WikiChunk
|
|||
# By default, no escaped text
|
||||
def escaped_text() nil end
|
||||
|
||||
# Replace link with a mask, but if the word is escaped, then don't replace it
|
||||
def mask(content) escaped_text || "#{pre_mask}#{link_text}#{post_mask}" end
|
||||
# FIXME: do not use the bracketing mask - URI chunk thinks that 'index.jpg'
|
||||
# contains URL http://index.jp
|
||||
|
||||
def regexp() /#{pre_mask}(.*)#{post_mask}/ end
|
||||
# Replace link with a mask, but if the word is escaped, then don't replace it
|
||||
def mask(content) escaped_text || bracketing_mask(link_text) end
|
||||
|
||||
def regexp() bracketing_mask_regexp end
|
||||
|
||||
def revert(content) content.sub!(regexp, text) end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue