package
0.22.0-dev
Repository: https://github.com/elves/elvish.git
Documentation: pkg.go.dev

# Packages

Command mdrun can be used to test the md package.

# Functions

Render parses markdown and renders it with a [Codec].
RenderInlineContentToHTML renders inline content to HTML, writing to a [strings.Builder].
Render calls Render(text, codec) and returns codec.String().

# Constants

Possible output operations.
Container blocks.
Possible output operations.
Possible output operations.
Possible output operations.
Inline markup elements.
Possible output operations.
Possible output operations.
Possible output operations.
Possible output operations.
Possible output operations.
Possible output operations.
Possible output operations.
Text elements.
Leaf blocks.

# Variables

UnescapeHTML is used by the parser to unescape HTML entities and numeric character references.

# Structs

FmtCodec is a codec that formats Markdown in a specific style.
FmtUnsupported contains information about use of unsupported features.
HTMLCodec converts markdown to HTML.
InlineOp represents an inline operation.
Op represents an operation for the Codec.
SmartPunctsCodec wraps another codec, converting certain ASCII punctuations to nicer Unicode counterparts: - A straight double quote (") is converted to a left double quote (“) when it follows a whitespace, or a right double quote (”) when it follows a non-whitespace.
TextBlock is a text block dumped by TextCodec.
TextCodec is a codec that dumps the pure text content of Markdown.
TraceCodec is a Codec that records all the Op's passed to its Do method.
TTYCodec renders Markdown in a terminal.

# Interfaces

Codec is used to render output.
StringerCodec is a [Codec] that also implements the String method.

# Type aliases

InlineOpType enumerates possible types of an InlineOp.
OpType enumerates possible types of an Op.