Completes incomplete markdown syntax during streaming.
When LLMs stream markdown token-by-token, you get partial formatting:
unclosed **bold, half-open code fences, partial [links](. This module
auto-closes those constructs so the markdown parser produces valid output.
Operates on raw strings before they reach the parser — no AST, no dependencies.
Summary
Functions
Completes incomplete markdown syntax in the given text.