Skip to main content
Module

x/charmd/renderer.ts>Options

A simple, extendable markdown renderer for your terminal.
Latest
interface Options
import { type Options } from "https://deno.land/x/charmd@v0.1.2/renderer.ts";

Options for the processing and rendering of the markdown

Properties

optional
extensions: Extension[]
optional
tableBorder: boolean

Whether to add borders to the generated tables. Defaults to true.

optional
listIcons: string[]

Override list icons for the different list levels. For lists deeper than whats provided, the last icon will be used. Defaults to ['-', '◦', '▪', '▸']

optional
lineWidth: number

Only affects thematicBreak line width currently. Defaults to Deno.consoleSize().columns

optional
mdast: { encoding?: string; options?: MdastOptions; }

UNSTABLE: The AST generator may change in the future.

Currently https://github.com/syntax-tree/mdast-util-from-markdown is used as the AST generator