class Crst::TextRenderer

Overview

Renders the AST as plain text

This class traverses the document tree and converts each node to plain text representation.

Defined in:

crst/text_renderer.cr

Instance Method Summary

Instance methods inherited from class Crst::BaseRenderer

render(node : Node) : String render, render_to_builder(node : Node, builder : String::Builder) render_to_builder

Constructor methods inherited from class Crst::BaseRenderer

new(config : Config = Config.new) new

Instance Method Detail

def render(node : Node) : String #

Render a node to plain text string

node - The node to render Returns the plain text representation of the node


[View source]