Class MaRuKu::MDDocument
In: lib/maruku.rb
lib/maruku/ext/math/parsing.rb
lib/maruku/input_textile2/t2_parser.rb
lib/maruku/toc.rb
lib/maruku/output/to_markdown.rb
lib/maruku/output/to_latex.rb
lib/maruku/output/s5/to_s5.rb
lib/maruku/document.rb
Parent: MDElement

This represents the whole document and holds global data.

Methods

Included Modules

In::Markdown In::Markdown::SpanLevelParser In::Markdown::BlockLevelParser MaRuKu::Out::Latex::MDDocumentExtensions

Constants

Handling = Struct.new(:method, :parse_lines)
T2_Handling = { nil => Handling.new(:t2_block_paragraph, true), 'p' => Handling.new(:t2_block_paragraph, true)

External Aliases

to_md -> old_md

Attributes

abbreviations  [RW]  @return [{String => String}]
ald  [RW]  Attribute definition lists.

@return [{String => AttributeList}]

eqid2eq  [RW]  A hash of equation ids to equation elements

@return [String => MDElement]

footnotes  [RW]  @return [{String => MDElement}]
footnotes_order  [RW]  The order in which footnotes are used. Contains the id.

@return [Array<String>]

header_ids  [RW]  A map of header IDs to a count of how many times they‘ve occurred in the document.

@return [Hash<String, Number>]

id_counter  [RW]  A counter for generating unique IDs [Integer]
refid2ref  [RW]  @return [{String => {String => MDElement}}]
refs  [RW]  @return [{String => {:url => String, :title => String}}]
toc  [RW]  The table of contents for the document.

@return [Section]

Public Class methods

Public Instance methods

Input is a LineSource

Render as an HTML fragment (no head, just the content of BODY). (returns a string)

[Validate]