app/models/wiki_content.rb in Pimki-1.0.092 vs app/models/wiki_content.rb in Pimki-1.1.092
- old
+ new
@@ -41,11 +41,11 @@
# UPDATED: 22nd May 2004
class WikiContent < String
# Moved URIChunk from pre-engine to post-engine, as it clashed with the textile
# markup of "link":URL.
- PRE_ENGINE_ACTIONS = [ NoWiki, Category, Include, WikiChunk::Link, WikiChunk::Word ]
+ PRE_ENGINE_ACTIONS = [ NoWiki, Category, Include, WikiChunk::BlikiLink, WikiChunk::Link, WikiChunk::Word ]
POST_ENGINE_ACTIONS = [ Literal::Pre, Literal::Tags, URIChunk, Todo ]
DEFAULT_OPTS = {
:pre_engine_actions => PRE_ENGINE_ACTIONS,
@@ -104,10 +104,10 @@
# Each time the type's pattern is matched, create a new
# chunk for it, and replace the occurance of the chunk
# in this content with its mask.
def apply_type!(chunk_type)
self.gsub!( chunk_type.pattern ) do |match|
- @chunks << chunk_type.new($~)
+ @chunks << chunk_type.new($~, @revision)
@chunks.last.mask(self)
end
end
end
\ No newline at end of file