MARKUP_RULESconstant
MARKUP_RULES: MarkupRules
Default markup rules — the combined block and inline rules MarkupParser uses when none are supplied.
These rules define a syntax similar to Markdown but with improvements:
- Syntax is more intuitive (e.g.
*strong*always uses*asterisk and_em_always uses_underscore, and URLs are always autolinked). - More compatible with textboxes that wrap lines by default (e.g. single
\nlinebreaks don't need the trailing double space to, they're always treated as<br />). - Don't support fussy fragile syntax that lets users make mistakes (e.g. literal HTML tags or
&character entities).
Examples
new MarkupParser({ rules: MARKUP_RULES }).parse("This is a *bold* string.")