Sha256: 06491449d5c7e436df41a0fa81ddb1c003579442b00b5fc1165b1df75ce83172
Contents?: true
Size: 308 Bytes
Versions: 5
Compression:
Stored size: 308 Bytes
Contents
require 'nitro/mixin/markup' module Nitro module 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
5 entries across 5 versions & 1 rubygems