Markdown Terminal
Terminal implementation that outputs Markdown-formatted text.
This terminal converts style information to Markdown markup:
Strong text:
**bold**
Parameters:
` `code` `
Errors:
~~strikethrough~~
HTML escaping:
<
and>
characters are escaped to<
and>
Useful for generating documentation or when output will be processed by Markdown renderers.
Parameters
Whether to output to standard error instead of standard output
Functions
Outputs closing Markdown markup for error text (double tildes).
Outputs closing Markdown markup for parameter/code text (backtick).
Called when closing plain text formatting.
Outputs closing Markdown markup for strong/bold text (double asterisks).
Emits a platform-appropriate newline sequence.
Emits text with strong/bold formatting. Default implementation outputs as plain text.
Outputs Markdown markup for error text (double tildes for strikethrough).
Outputs Markdown markup for parameter/code text (backtick).
Called when transitioning to plain text formatting.
Outputs Markdown markup for strong/bold text (double asterisks).