Replace rule by name with new function & options. Throws error if name not found.
Add new rule to chain before one with given name. See also Ruler.after, Ruler.push.
Add new rule to chain after one with given name. See also Ruler.before, Ruler.push.
Push new rule to the end of chain. See also Ruler.before, Ruler.after.
Enable rules with given names. If any rule name not found - throw Error. Errors can be disabled by second param.
See also Ruler.disable, Ruler.enableOnly.
Returns list of found rule names (if no exception happened).
Enable rules with given names, and disable everything else. If any rule name not found - throw Error. Errors can be disabled by second param.
See also Ruler.disable, Ruler.enable.
Disable rules with given names. If any rule name not found - throw Error. Errors can be disabled by second param.
See also Ruler.enable, Ruler.enableOnly.
Returns list of found rule names (if no exception happened).
Return array of active functions (rules) for given chain name. It analyzes rules configuration, compiles caches if not exists and returns result.
Default chain name is '' (empty string). It can't be skipped. That's
done intentionally, to keep signature monomorphic for high speed.
Helper class, used by MarkdownIt.core, MarkdownIt.block and MarkdownIt.inline to manage sequences of functions (rules):
You will not need use this class directly until write plugins. For simple rules control use MarkdownIt.disable, MarkdownIt.enable and MarkdownIt.use.