class Markd::Parser::Block

Included Modules

Defined in:

markd/parsers/block.cr

Constant Summary

RULES = {Node::Type::Document => Rule::Document.new, Node::Type::BlockQuote => Rule::BlockQuote.new, Node::Type::Heading => Rule::Heading.new, Node::Type::CodeBlock => Rule::CodeBlock.new, Node::Type::HTMLBlock => Rule::HTMLBlock.new, Node::Type::ThematicBreak => Rule::ThematicBreak.new, Node::Type::List => Rule::List.new, Node::Type::Item => Rule::Item.new, Node::Type::Paragraph => Rule::Paragraph.new}

Constructors

Class Method Summary

Instance Method Summary

Class methods inherited from module Markd::Parser

parse(source : String, options = Options.new) parse

Constructor Detail

def self.new(options : Options) #

[View source]

Class Method Detail

def self.parse(source : String, options = Options.new) #

[View source]

Instance Method Detail

def add_child(type : Node::Type, offset : Int32) : Node #

[View source]
def advance_next_nonspace #

[View source]
def advance_offset(count, columns = false) #

[View source]
def blank : Bool #

[View source]
def close_unmatched_blocks #

[View source]
def column : Int32 #

[View source]
def column=(column : Int32) #

[View source]
def current_line : Int32 #

[View source]
def indent : Int32 #

[View source]
def indented : Bool #

[View source]
def inline_lexer : Markd::Parser::Inline #

[View source]
def line : String #

[View source]
def next_nonspace : Int32 #

[View source]
def offset : Int32 #

[View source]
def offset=(offset : Int32) #

[View source]
def parse(source : String) #

[View source]
def refmap : Hash(String, Hash(String, String) | String) #

[View source]
def tip : Node | Nil #

def tip=(tip : Node | Nil) #

[View source]
def tip? : Node | Nil | Nil #

def token(container : Node, line_number : Int32) #

[View source]