T
MarkdownState
The parse state Discord's rules read; the allow* flags turn links, headings and lists on.
type MarkdownState = { … }Members
allowHeading?
booleanParses # headings.
allowLinks?
booleanRenders links as links instead of plain text.
allowList?
booleanParses - and 1. lists.
inline?
booleanWhether the parser is inside inline content; inline-only rules such as strong match only then.
key?
string | numberThe React key the output function sets before calling a rule's react.