Sha256: d2c2c28cfaf24c42801940d91ae4bae618662f950f14d715309e08d0b3d08a04
Contents?: true
Size: 331 Bytes
Versions: 7
Compression:
Stored size: 331 Bytes
Contents
description 'Markdown nowiki filter' Filter.create :markdown_nowiki do |context, content| output = '' until content.blank? case content when /(\A( {4}|\t).*)|(\A``.*?``)|(\A`[^`]*`)/ output << "<notags>#{$&}</notags>" when /(\A[^`\n]+)|(\A\n+)/ output << $& end content = $' end output end
Version data entries
7 entries across 7 versions & 1 rubygems