markdown.parse

markdown

parse(input, options) -> events

Parse markdown and collect events into an array

Parses input and returns an array of event tables. Options:

An attribute block after a link, an image or an autolink adds its keys to the link's attrs: {.cls #id key=val} gives class, id and key. The block never sets href, autolink or wikilink, which the parser reads from the link itself. It sets title only when the link has none: [x](a "t"){title=u} keeps t.