class Luce::InlineParser

Overview

Maintains the internal state needed to parse inline span elements in Markdown.

Defined in:

luce/inline_parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String, document : Document) #

Instance Method Detail

def add_node(node : Node) : Nil #

Add node to the current tree.


def advance(length : Int32) : Nil #

def char_at(index : Int32) : Int32 #

def consume(length : Int32) : Nil #

def document : Document #

The Markdown document this parser is parsing


def done? : Bool #

def parse : Array(Node) #

def pos : Int32 #

The current read position


def pos=(pos : Int32) #

The current read position


def push_delimiter(delimiter : Delimiter) : Nil #

Push delimiter onto the stack of Delimiters


def source : String #

The string of Markdown being parsed


def start : Int32 #

Starting position of the last unconsumed text.


def start=(start : Int32) #

Starting position of the last unconsumed text.


def syntaxes : Array(InlineSyntax) #

def write_text : Nil #