Streaming terminal renderer that outputs text immediately as parser events arrive. Uses cursor-based re-rendering for code blocks. Requires a terminal with cursor movement support.
List looseness is applied from the point the parser reports it. Blocks
already written cannot be respaced, so a list whose first blank line
appears late keeps its earlier items tight. Feeding events through
markdown.tightness first trades that for buffering the whole list.
| Name | Signature |
|---|---|
| new | new(options) -> renderer |
new(
options) ->renderer
Create a new streaming renderer instance
Returns a renderer with render_event(event), finish(), and reset()
methods. Options:
width: content width in columns (default 80)output_fn: output function (default io.write)rss: custom RSS table to merge with default themesupports_ts: terminal supports OSC 66 text sizing (default true)