Class: Coradoc::Input::Html::Converters::Code

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

Instance Method Summary collapse

Methods inherited from Markup

#extract_text_and_elements, #extract_text_from_model, #to_coradoc

Methods inherited from Base

#convert, #escape_text, #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_format_typeObject



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

def coradoc_format_type
  'monospace'
end

#markup_ancestor_tag_namesObject



12
13
14
# File 'lib/coradoc/html/input/converters/code.rb', line 12

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