Class: MarkdownFormatter::ASTNode::Emphasis
- Defined in:
- lib/markdown_formatter/nodes/emphasis.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from MarkdownFormatter::ASTNode::Base
Instance Method Details
#to_s ⇒ Object
4 5 6 7 |
# File 'lib/markdown_formatter/nodes/emphasis.rb', line 4 def to_s delim = node.dig(:options, :delim) "%s%s%s" % [delim, Paragraph.new(node).to_s, delim] end |