Constructor
Parameters
StreamingMarkdownRendererOptions
Returns
StreamingMarkdownRenderer
Methods
finish()
Returns
string
getCommittableText()
- Holds back unconfirmed table headers until separator arrives.
- Optionally wraps confirmed tables in code fences so pipes render as literal text on append-only surfaces that lack native table support. The code fence is left OPEN while the table is still streaming, keeping output monotonic for deltas.
- Holds back unclosed inline markers (**, *, ~~, `, [).
- The final editMessage replaces everything with properly formatted text.
Returns
string
getText()
Returns
string
push()
Parameters
string
required
render()
- Holds back trailing lines that look like a table header (|…|) until a separator line (|---|---|) confirms or the next line denies.
- Applies remend() to close incomplete inline markers.
- Idempotent: returns cached result if no push() since last call.
Returns
string