Sha256: 010f5c24d6a0607327b8074559ae8705be42b98c6983108e496982ef4ec95c1f
Contents?: true
Size: 367 Bytes
Versions: 3
Compression:
Stored size: 367 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 # * George Moschovitis <gm@navel.gr>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.27.0 | lib/nitro/compiler/markup.rb |
nitro-0.28.0 | lib/nitro/compiler/markup.rb |
nitro-0.29.0 | lib/nitro/compiler/markup.rb |