Class: Paru::PandocFilter::MetaInlines

Inherits:
Node
  • Object
show all
Includes:
InnerMarkdown
Defined in:
lib/paru/filter/meta_inlines.rb

Overview

A MetaInlines node contains a list of Inline nodes

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Paru::PandocFilter::Node

Instance Method Details

#inner_markdownString Originally defined in module InnerMarkdown

Get the markdown representation of this Node's children.

Examples:

Replace all occurrences of “hello” by “world” in all paragraphs

Paru::Filter.run do
    with "Para" do |p|
        p.inner_markdown = p.inner_markdown.gsub "hello", "world"
    end
end         

Returns:

  • (String)

    the inner markdown representation of this Node

#inner_markdown=(markdown) ⇒ Object Originally defined in module InnerMarkdown

Replace this Node's children with the Nodes represented by the markdown string

Examples:

Replace all occurrences of “hello” by “world” in all paragraphs

Paru::Filter.run do
    with "Para" do |p|
        p.inner_markdown = p.inner_markdown.gsub "hello", "world"
    end
end         

Parameters:

  • markdown (String)

    the markdown string to replace this Node's children