Mup, which is short for Markup Parser, is a cross-platform library written in C#. It targets .NET Standard 1.0 making it available for a wide variety of devices and applications.
The main purpose of the library is to support parsing Lightweight Markup Languages into various output formats, such as HTML, XHTML, XML, Word Documents, Excel Documents, and any other type of document.
The library does not expose types for each mentioned format, but it is made to be extensible. Any parsed text can be run through a custom visitor which traverses the resulting parse tree allowing the developer to specify what exactly needs to be generated at every step.
To keep it lightweight, the library only provides parsers for several languages (see below) and an HTML visitor which allows users to generate HTML from parsed text. With each increment (or major version), the library will bring a new parser into the fold and thus supporting more languages. The end goal is to support most, if not all, Lightweight Markup Languages.
Language | Phase | Release Version | Elements |
---|---|---|---|
Creole | Released | 1.0.0 | headings paragraphs lists tables inline code code blocks horizontal rules emphasis (italics) strong (bold) inline hyperlinks hyperlinks images line breaks plugins |
CommonMark | Planned | 2.0.0 | headings paragraphs lists block quotes inline code code blocks horizontal rules emphasis (italics) strong (bold) inline hyperlinks hyperlinks images line breaks |
Mup Copyright © 2020 Andrei Fangli