Yeesh.Markdown (Yeesh v0.8.3)

View Source

Converts Markdown to ANSI-escaped terminal output for xterm.js.

Delegates to Marcli with \r\n line endings as required by the xterm.js terminal emulator.

Example

output = Yeesh.Markdown.render("# Hello\n\nSome **bold** text.")

Summary

Functions

Renders a Markdown string as ANSI-escaped terminal output with \r\n line endings for xterm.js.

Functions

render(markdown)

@spec render(String.t()) :: String.t()

Renders a Markdown string as ANSI-escaped terminal output with \r\n line endings for xterm.js.

Requires {:marcli, "~> 0.3"} dependency.