class Cheet::Markdown::MarkdownDocument
- Cheet::Markdown::MarkdownDocument
- Cheet::Document
- Reference
- Object
Defined in:
cheet/markdown.crConstructors
Instance Method Summary
-
#build_index : Index
Builds the index of headings in this document.
-
#parse(io : IO, builder : Poor::Builder | Poor::Stream)
Parses the content of io into builder.
-
#parse(io : IO) : Poor::Markup
Parses the content of io as rich text.
-
#parse_map(io : IO, builder : Poor::Builder | Poor::Stream, &)
Parses the content of io, transforms it using the provided block and passes it into builder.
-
#skip_to_content(heading : Heading, *, skip_heading = true)
Seeks within the underlying file the content immediately after heading.
Instance methods inherited from class Cheet::Document
build_index : Index
build_index,
content(heading : Heading, include_heading = false) : IO
content,
content?(heading_index : Int32, include_heading = false) : IO | Nil
content?,
index : Index
index,
name : Path | String
name,
parse(io : IO, builder : Poor::Builder | Poor::Stream)parse(io : IO) : Poor::Markup parse, parse_map(io : IO, builder : Poor::Builder | Poor::Stream, & : Markup -> Markup) parse_map, select_headings(&func : Heading -> U) : Iterator(Heading) forall U select_headings, skip_to_content(heading : Heading, *, skip_heading = true) skip_to_content
Constructor methods inherited from class Cheet::Document
new(name : Path | String)
new
Constructor Detail
Instance Method Detail
Description copied from class Cheet::Document
Builds the index of headings in this document.
def parse(io : IO, builder : Poor::Builder | Poor::Stream)
#
Description copied from class Cheet::Document
Parses the content of io into builder.
def parse(io : IO) : Poor::Markup
#
Description copied from class Cheet::Document
Parses the content of io as rich text.
def parse_map(io : IO, builder : Poor::Builder | Poor::Stream, &)
#
Description copied from class Cheet::Document
Parses the content of io, transforms it using the provided block and passes it into builder.
Description copied from class Cheet::Document
Seeks within the underlying file the content immediately after heading.
This method should not be called by clients directly.