module MarkdownIt
List of valid html blocks names, accorting to commonmark spec jgm.github.io/CommonMark/spec.html#html-blocks
Regexps to match html elements
Parse link destination
Parse link label
this function assumes that first character (“[”) already matches; returns the end of the label
Parse link title
internal class ParserBlock
Block-level tokenizer.
internal class Core
Top-level rules executor. Glues block/inline parsers and does intermediate transformations.
internal class ParserInline
Tokenizes paragraph content.
Commonmark default options
markdown-it default options
“Zero” preset, with nothing enabled. Useful for manual configuring of simple modes. For example, to parse bold/italic only.
class Renderer
Generates HTML from parsed token stream. Each instance has independent copy of rules. Those can be rewritten with ease. Also, you can add new rules if you create plugin and adds new token types.
-
class
Ruler
*
-
Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and
- [MarkdownIt#inline]
-
to manage sequences of functions (rules):
*
-
keep rules in defined order
-
-
assign the name to each rule
-
-
enable/disable rules
-
-
add/replace rules
-
-
allow assign rules to additional named chains (in the same)
-
-
cacheing lists of active rules
-
*
-
You will not need use this class directly until write plugins. For simple
-
rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and
-
[[MarkdownIt.use]].
Block quotes
Code block (4 spaces padded)
fences (“` lang, ~~~ lang)
heading (#, ##, …)
Horizontal rule
HTML block
lheading (—, ===)
Lists
Paragraph
Parser
state class
GFM table, non-standard
Replace link-like texts with link nodes.
Currently restricted by `md.validateLink()` to http/https/ftp
Normalize input string
Simple typographyc replacements
© (C) → © (tm) (TM) → ™ ® (R) → ® +- → ± (p) (P) -> § … → … (also ?.… → ?.., !.… → !..) ???????? → ???, !!!!! → !!!, `,,` → `,` – → –, — → —
Convert straight quotation marks to typographic ones
Core state object
Process autolinks '<protocol:…>'
Parse backticks
For each opening emphasis-like marker find a matching closing one
Process this and that
Process html entity - {, ¯, ", …
Process escaped chars and hardbreaks
Process html tags
Process 
Process [link](<to> “stuff”)
Proceess 'n'
Inline parser state
~~strike through~~
Skip text characters for text token, place those to pending buffer and increment current pos
Merge adjacent text nodes into one, and re-calculate all token levels
Token
class
Constants
- HTML_BLOCKS