class MarkdownFormatter::ASTNode::Inline
Public Instance Methods
to_s()
click to toggle source
# File lib/markdown_formatter/nodes/inline.rb, line 4 def to_s case node[:type] when :a Link.new(c).to_s when :text node[:value] when :br # skip when :smart_quote SmartQuote.new(c).to_s when :typographic_sym TypographicSym.new(c).to_s when :img Image.new(c).to_s when :entity Entity.new(c).to_s when :footnote Footnote.new(c).to_s else pp c raise "Unexpected type `#{c[:type]}'" end end