Class Asciidoctor::Document
In: lib/asciidoctor/document.rb
Parent: AbstractBlock

Public: Methods for parsing Asciidoc documents and rendering them using erb templates.

There are several strategies for getting the title of the document:

doctitle - value of title attribute, if assigned and non-empty,

           otherwise title of first section in document, if present
           otherwise nil

name - an alias of doctitle title - value of the title attribute, or nil if not present first_section.title - title of first section in document, if present header.title - title of section level 0

Keep in mind that you‘ll want to honor these document settings:

notitle - The h1 heading should not be shown noheader - The header block (h1 heading, author, revision info) should not be shown

Constants

Footnote = Struct.new(:index, :id, :text)
AttributeEntry = Struct.new(:name, :value, :negate) do def initialize(name, value, negate = nil)

[Validate]