Sha256: 385631ad6ed2cc094d41f70eb24faed1746802c48f9a7a9af6f6cbba1f289395

Contents?: true

Size: 285 Bytes

Versions: 3

Compression:

Stored size: 285 Bytes

Contents

module HtmlToProsemirror
  module Marks
    class Code < Mark

      def matching
        if (@node.parent.name === 'pre')
          return false
        end
        @node.name === 'code'
      end

      def data
        {
          type: "code"
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html_to_prosemirror-0.2.0 lib/html_to_prosemirror/marks/code.rb
html_to_prosemirror-0.1.1 lib/html_to_prosemirror/marks/code.rb
html_to_prosemirror-0.1.0 lib/html_to_prosemirror/marks/code.rb