Class: Coradoc::Input::HTML::Converters::Code

Inherits:
Markup
  • Object
show all
Defined in:
lib/coradoc/input/html/converters/code.rb

Instance Method Summary collapse

Methods inherited from Markup

#to_coradoc

Methods inherited from Base

#convert, #extract_leading_trailing_whitespace, #extract_title, #node_has_ancestor?, #textnode_after_start_with?, #textnode_before_end_with?, #treat, #treat_children, #treat_children_coradoc, #treat_coradoc, #unconstrained_after?, #unconstrained_before?

Instance Method Details

#coradoc_classObject



4
5
6
# File 'lib/coradoc/input/html/converters/code.rb', line 4

def coradoc_class
  Coradoc::Element::Inline::Monospace
end

#markup_ancestor_tag_namesObject



8
9
10
# File 'lib/coradoc/input/html/converters/code.rb', line 8

def markup_ancestor_tag_names
  %w[code tt kbd samp var]
end