class Parser

Defined in:

common_marker/parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(options : Int32) #

Creates a new cmark-gfm's parser abstraction with the defined options.


[View source]

Instance Method Detail

def add_extension(name : String) #

[View source]
def add_extensions(extensions = [] of String) #

[View source]
def finish #

Finish parsing and return a pointer to a tree of nodes.


[View source]
def get_extensions #

Returns a list containing the extensions of the current parser.


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

Feeds a string to parser.


[View source]
def parser : LibCmark::CmarkParser #

[View source]