Sha256: 9297360457cb6c8f85182630af4101ad8ad158815ebbe52b7585be84cd8085da

Contents?: true

Size: 463 Bytes

Versions: 43

Compression:

Stored size: 463 Bytes

Contents

require 'rabbit/element'

module Rabbit
  module Parser
    module Ext
      module Inline
        include Element

        module_function
        def sub(text)
          Subscript.new(text)
        end

        def sup(text)
          Superscript.new(text)
        end

        def note(text)
          Note.new(text)
        end

        def lang(lang, text)
          text.add_default_prop("lang", lang)
          text
        end
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
rabbit-3.0.3 lib/rabbit/parser/ext/inline.rb
rabbit-3.0.2 lib/rabbit/parser/ext/inline.rb
rabbit-3.0.1 lib/rabbit/parser/ext/inline.rb
rabbit-3.0.0 lib/rabbit/parser/ext/inline.rb
rabbit-2.2.1 lib/rabbit/parser/ext/inline.rb
rabbit-2.2.0 lib/rabbit/parser/ext/inline.rb
rabbit-2.1.9 lib/rabbit/parser/ext/inline.rb
rabbit-2.1.8 lib/rabbit/parser/ext/inline.rb
rabbit-2.1.7 lib/rabbit/parser/ext/inline.rb
rabbit-2.1.6 lib/rabbit/parser/ext/inline.rb
rabbit-2.1.5 lib/rabbit/parser/ext/inline.rb
rabbit-2.1.4 lib/rabbit/parser/ext/inline.rb
rabbit-2.1.3 lib/rabbit/parser/ext/inline.rb
rabbit-2.1.2 lib/rabbit/parser/ext/inline.rb
rabbit-2.1.1 lib/rabbit/parser/ext/inline.rb
rabbit-2.1.0 lib/rabbit/parser/ext/inline.rb
rabbit-2.0.9 lib/rabbit/parser/ext/inline.rb
rabbit-2.0.8 lib/rabbit/parser/ext/inline.rb
rabbit-2.0.7 lib/rabbit/parser/ext/inline.rb
rabbit-2.0.6 lib/rabbit/parser/ext/inline.rb