Sha256: c0738950918ede74d310e8c774e739cc3f7eb57bb6f1d54c507574f98a28c072

Contents?: true

Size: 227 Bytes

Versions: 4

Compression:

Stored size: 227 Bytes

Contents

require_relative 'processor'

module SSMD::Processors
  class MarkProcessor < Processor
    def result
      text = match.captures.first

      "<mark name=\"#{text}\"/>"
    end

    def regex
      /@(\w+)/
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ssmd-0.2.2 lib/ssmd/processors/mark_processor.rb
ssmd-0.2.1 lib/ssmd/processors/mark_processor.rb
ssmd-0.2.0 lib/ssmd/processors/mark_processor.rb
ssmd-0.1.0 lib/ssmd/processors/mark_processor.rb