class Luce::Document
- Luce::Document
- Reference
- Object
Overview
Maintains the context needed to parse a Markdown document
Defined in:
luce/document.crConstructors
Instance Method Summary
- #block_syntaxes : Array(BlockSyntax)
-
#encode_html : Bool
DEPRECATED Use
#encode_html?
instead. Will be removed in version 1.0. - #encode_html? : Bool
-
#footnote_labels : Array(String)
Footnotes label by appearing order.
-
#footnote_references : Hash(String, Int32)
Footnote ref count, keys are case-sensitive and added by define syntax.
-
#has_custom_inline_syntaxes : Bool
DEPRECATED Use
#has_custom_inline_syntaxes?
instead. Will be removed in version 1.0 - #has_custom_inline_syntaxes? : Bool
- #image_link_resolver : Resolver | Nil
- #inline_syntaxes : Array(InlineSyntax)
- #link_references : Hash(String, Luce::LinkReference)
- #link_resolver : Resolver | Nil
-
#parse(text : String) : Array(Node)
Parses the given text to a series of AST nodes.
-
#parse_inline(text : String) : Array(Node)
Parses the given inline Markdown text to a series of AST nodes.
-
#parse_line_list(lines : Array(Line)) : Array(Node)
Parses the given lines of
Line
to a series of AST nodes. -
#parse_lines(lines : Array(String)) : Array(Node)
Parses the given lines of Markdown to a series of AST nodes.
-
#with_default_block_syntaxes : Bool
Whether to use default block syntaxes
DEPRECATED Use
#with_default_block_syntaxes?
instead. Will be removed in version 1.0. -
#with_default_block_syntaxes? : Bool
Whether to use default block syntaxes
-
#with_default_inline_syntaxes : Bool
Whether to use default inline syntaxes.
DEPRECATED Use
#with_default_inline_syntaxes?
instead. Will be removed in version 1.0 -
#with_default_inline_syntaxes? : Bool
Whether to use default inline syntaxes.
Constructor Detail
Instance Method Detail
Footnotes label by appearing order.
They are case-sensitive and added by ref syntax.
Footnote ref count, keys are case-sensitive and added by define syntax.
DEPRECATED Use #has_custom_inline_syntaxes?
instead. Will be removed in version 1.0
Parses the given inline Markdown text to a series of AST nodes.
Parses the given lines of Markdown to a series of AST nodes.
Whether to use default block syntaxes
DEPRECATED Use #with_default_block_syntaxes?
instead. Will be removed in version 1.0.
Whether to use default inline syntaxes.
Need to set both #with_default_block_syntaxes?
and #encode_html?
to
false
to disable all inline syntaxes including HTML encoding syntaxes.
DEPRECATED Use #with_default_inline_syntaxes?
instead. Will be removed in version 1.0
Whether to use default inline syntaxes.
Need to set both #with_default_block_syntaxes?
and #encode_html?
to
false
to disable all inline syntaxes including HTML encoding syntaxes.