Sha256: d17939fcb660dff1cdbfb851fccab6e6043b12a849e02e9bf97a819ce3b7a3a8
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 Bytes
Contents
require 'glue/markup' module Nitro module Markup include Glue::Markup # Transform the markup macros. # Maps #(..) to :sanitize. # Maps #|..| to :markup. def self.transform(text) text.gsub!(/\#\((.*?)\)/, '#{sanitize(\1)}') text.gsub!(/\#\|(.*?)\|/, '#{markup(\1)}') return text end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.26.0 | lib/nitro/compiler/markup.rb |