Sha256: 5d88f4da992602eacc2f7114c2869b23670fc33a9d8a0088d3365ea7049cf9de

Contents?: true

Size: 206 Bytes

Versions: 14

Compression:

Stored size: 206 Bytes

Contents

require_relative 'processor'

module SSMD::Processors
  class EmphasisProcessor < Processor
    def result
      "<emphasis>#{text}</emphasis>"
    end

    def regex
      /\*([^\*]+)\*/
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ssmd-0.7.6 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.7.5 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.7.4 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.7.3 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.7.2 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.7.1 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.7.0 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.6.1 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.6.0 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.5.0 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.4.0 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.3.1 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.3.0 lib/ssmd/processors/emphasis_processor.rb
ssmd-0.2.3 lib/ssmd/processors/emphasis_processor.rb