Class: Paru::PandocFilter::Para
- Includes:
- InnerMarkdown
- Defined in:
- lib/paru/filter/para.rb
Overview
A Para is a paragraph: a list of Inline nodes
Instance Method Summary collapse
-
#has_inline? ⇒ Boolean
Does a Para have inline content?.
-
#initialize(contents) ⇒ Para
constructor
Create a new Para node based on the contents.
-
#inner_markdown ⇒ String
included
from InnerMarkdown
Get the markdown representation of this Node's children.
-
#inner_markdown=(markdown) ⇒ Object
included
from InnerMarkdown
Replace this Node's children with the Nodes represented by the markdown string.
Constructor Details
#initialize(contents) ⇒ Para
Create a new Para node based on the contents
31 32 33 |
# File 'lib/paru/filter/para.rb', line 31 def initialize(contents) super contents, true end |
Instance Method Details
#has_inline? ⇒ Boolean
Does a Para have inline content?
38 39 40 |
# File 'lib/paru/filter/para.rb', line 38 def has_inline? true end |
#inner_markdown ⇒ String Originally defined in module InnerMarkdown
Get the markdown representation of this Node's children.
#inner_markdown=(markdown) ⇒ Object Originally defined in module InnerMarkdown
Replace this Node's children with the Nodes represented by the markdown string