mdast is a specification for representing markdown in a syntax tree. It implements unist. It can represent several markdown flavors, such as CommonMark and GitHub Flavored Markdown.