Test, validate and match regular expressions
A comprehensive markdown tokenizer that captures nearly all common markdown elements into named capture groups: headings (h1-h6), tables (separator rows plus first/middle/last cells for top and bottom rows), links with optional titles, ordered and unordered lists with first/middle/last item detection, bold/italic/bold-italic, strikethrough, inline and multiline code, blockquotes, horizontal rules, and paragraph line breaks. Designed for JavaScript with global and multiline flags to scan and tokenize full markdown documents for conversion to HTML.