Sha256: 85317e59012112ae80d7ea406a2579ff2a91e7c979300632421138f3e4a7e0c9

Contents?: true

Size: 244 Bytes

Versions: 13

Compression:

Stored size: 244 Bytes

Contents

Webby::Filters.register :wikiwords do |input, cursor|

  renderer = cursor.renderer
  input.gsub %r/\[\[([^\]]+)\]\]/ do
    name = $1
    renderer.link_to_page(name) {
      %Q(<a class="missing internal">#{name}</a>)
    }
  end

end

# EOF

Version data entries

13 entries across 13 versions & 8 rubygems

Version Path
TwP-webby-0.9.3 lib/webby/filters/wiki_words.rb
TwP-webby-0.9.4.1 lib/webby/filters/wiki_words.rb
TwP-webby-0.9.4 lib/webby/filters/wiki_words.rb
blowmage-webby-0.9.4.1 lib/webby/filters/wiki_words.rb
dysinger-webby-0.9.4 lib/webby/filters/wiki_words.rb
francois-webby-0.9.4.1 lib/webby/filters/wiki_words.rb
giraffesoft-webby-0.9.5 lib/webby/filters/wiki_words.rb
mikker-webby-0.9.4 lib/webby/filters/wiki_words.rb
jamesgolick-webby-0.9.5 lib/webby/filters/wiki_words.rb
webby-0.9.3 lib/webby/filters/wiki_words.rb
webby-0.9.3-x86-mswin32 lib/webby/filters/wiki_words.rb
webby-0.9.4 lib/webby/filters/wiki_words.rb
webby-0.9.4-x86-mswin32 lib/webby/filters/wiki_words.rb