[RESTORES BUILD] Wiki link (in double square brackets) has precedence over autolinking URLs;
contents of wiki links are not passed to markup engines; got rid of bracketing mask method in the chunks parser (it was a feature that caused a lot of parsing grief for no good reason)
This commit is contained in:
parent
301464c4e4
commit
8263e4bfcd
6 changed files with 32 additions and 37 deletions
|
@ -24,22 +24,6 @@ module Chunk
|
|||
end
|
||||
end
|
||||
|
||||
def pre_mask
|
||||
"chunk#{self.object_id}#{self.class.to_s.delete(':').downcase}start"
|
||||
end
|
||||
|
||||
def post_mask
|
||||
"chunk#{self.object_id}end"
|
||||
end
|
||||
|
||||
def bracketing_mask(content)
|
||||
"#{pre_mask} #{content} #{post_mask}"
|
||||
end
|
||||
|
||||
def bracketing_mask_regexp
|
||||
Regexp.new("#{pre_mask} (.*)[ \n]#{post_mask}")
|
||||
end
|
||||
|
||||
def mask(content)
|
||||
"chunk#{self.object_id}#{self.class.to_s.delete(':').downcase}chunk"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue