Constructors
constructor
- new Renderer<T>(options?): Renderer<T>
Properties
options
Methods
blockquote
- blockquote(this, quote): string | T
Returns string | T
br
- br(this): string | T
Returns string | T
checkbox
- checkbox(this, checked): string | T
Returns string | T
code
- code(this, code, language, isEscaped): string | T
Parameters
code: string
language: undefined | string
isEscaped: boolean
Returns string | T
codespan
- codespan(this, code): string | T
Returns string | T
del
- del(this, text): string | T
Returns string | T
em
- em(this, text): string | T
Returns string | T
heading
- heading(this, text, level, raw, slugger): string | T
Parameters
text: string
level: 2 | 1 | 3 | 4 | 5 | 6
raw: string
Returns string | T
hr
- hr(this): string | T
Returns string | T
html
- html(this, html): string | T
Returns string | T
image
- image(this, href, title, text): string | T
Parameters
href: null | string
title: null | string
text: string
Returns string | T
link
- link(this, href, title, text): string | T
Parameters
href: null | string
title: null | string
text: string
Returns string | T
list
- list(this, body, ordered, start): string | T
Parameters
body: string
ordered: boolean
start: number
Returns string | T
listitem
- listitem(this, text, task, checked): string | T
Parameters
text: string
task: boolean
checked: boolean
Returns string | T
paragraph
- paragraph(this, text): string | T
Returns string | T
strong
- strong(this, text): string | T
Returns string | T
table
- table(this, header, body): string | T
Parameters
header: string
body: string
Returns string | T
tablecell
- tablecell(this, content, flags): string | T
Parameters
content: string
flags: {
align: null | "center" | "left" | "right";
header: boolean;
}
align: null | "center" | "left" | "right"
header: boolean
Returns string | T
tablerow
- tablerow(this, content): string | T
Returns string | T
text
- text(this, text): string | T
Returns string | T