Termify
Class methods
markdown_stylesheet(styles : Hash(Symbol | String, NamedTuple), merge = Markdown::Stylesheet.default)
Convenience method to define a new Markdown stylesheet via the hash map of element names to respective style definitions. Merges with the default stylesheet by default.
render_markdown(io = STDOUT, style_sheet = Markdown::Stylesheet.default, on_gather = nil, &) : Nil
Render Markdown to an ANSI-compatible terminal via the given io
(defaults to STDIO). The given block will be passed the renderer,
itself an IO as an argument. The renderer will be automatically
closed when the block returns.
terminal
Get the singleton instance of Terminal. Not thread-safe, so make sure to call it only once.