Class: Paru::PandocFilter::Plain
- Includes:
- InnerMarkdown
- Defined in:
- lib/paru/filter/plain.rb
Overview
Instance Method Summary collapse
-
#has_inline? ⇒ Boolean
Has a Plain node inline contents?.
-
#initialize(contents) ⇒ Plain
constructor
Create a new Plain node based on 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) ⇒ Plain
Create a new Plain node based on contents
33 34 35 |
# File 'lib/paru/filter/plain.rb', line 33 def initialize(contents) super contents, true end |
Instance Method Details
#has_inline? ⇒ Boolean
Has a Plain node inline contents?
40 41 42 |
# File 'lib/paru/filter/plain.rb', line 40 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