T

MarkdownState

The parse state Discord's rules read; the allow* flags turn links, headings and lists on.

type MarkdownState = { … }

Members

Parses # headings.

allowList?boolean

Parses - and 1. lists.

inline?boolean

Whether the parser is inside inline content; inline-only rules such as strong match only then.

key?string | number

The React key the output function sets before calling a rule's react.