class Markd::TermRenderer

Defined in:

markterm.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(options = Options.new, theme : String | Nil = nil, code_theme : String | Nil = nil, force_links : Bool = false) #

[View source]

Instance Method Detail

def block_quote(node : Node, entering : Bool) #

[View source]
def code(node : Node, entering : Bool) #

[View source]
def code_block(node : Node, entering : Bool) #

[View source]
def emphasis(node : Node, entering : Bool) #

[View source]
def heading(node : Node, entering : Bool) #

[View source]
def html_block(node : Node, entering : Bool) #

[View source]
def html_inline(node : Node, entering : Bool) #

[View source]
def image(node : Node, entering : Bool) #

[View source]
def item(node : Node, entering : Bool) #

[View source]
def line_break(node : Node, entering : Bool) #

[View source]
def link(node : Node, entering : Bool) #

The #link method sets the style but doesn't print the link, the children nodes do that.

They will get the destination by looking up their parent.


[View source]
def list(node : Node, entering : Bool) #

[View source]
def paragraph(node : Node, entering : Bool) #

[View source]
def print(s) #

[View source]
def render(document : Node) : String #

[View source]
def soft_break(node : Node, entering : Bool) #

[View source]
def strong(node : Node, entering : Bool) #

[View source]
def text(node : Node, entering : Bool) #

[View source]
def thematic_break(node : Node, entering : Bool) #

[View source]