Table of content
Introduction
The md:
module provides utilities for working with Markdown text.
Function usages are given in the same format as in the reference doc for the builtin module.
This module uses a custom implementation that supports a large subset of CommonMark.
Functions
md:showadded in 0.21
md:show &width=0
Renders $markdown
in the terminal.
The &width
option specifies the width to wrap the output to. If it is 0 (the
default) or negative, show
queries the terminal width of the standard output
and use it as the width, falling back to 80 if the query fails (for example
when the standard output is not a terminal).
Examples:
~> md:show "#h1 heading\n- List\n- Item"
#h1 heading
• List
• Item
See also doc:show
.