MarkdownParser
provides the ability to parse Markdown text in to a nested UI structure.
Available on NuGet.
Install with the dotnet CLI: dotnet add package MarkdownParser
(or use your preferred NuGet Package Manager).
- Original Markdown syntax support
- Replace 'CommonMark.NET' for 'Markdig'
- for extended markdown syntax
- CommonMark.NET is used to read Markdown and turn them into c# objects
- MarkdownParser creates a custom formatter to work with the created c# objects
- MarkdownParser creates a custom writer to control creation of ui components
- MarkdownParser creates a custom writer to call the IViewSupplier and manage the creation of UI components
- You need to create/provide an UI component generator (IViewSupplier), one for every platform.
If you need any help with creating a IViewSupplier? check out Plugin.Maui.MarkdownView.
- ✔️ All basic Markdown syntaxes are supported
- _see basic Markdown syntax on the markdownguide basic-syntax page__.
The basic syntax created in the original Markdown design document provides enough elements for everyday use. However, over time, various extensions have been released to meet specific needs, sometimes using different syntaxes generating the same result. Examples markdown extended syntaxes on markdownguide extended-syntax page.
While MarkdownParser supports a small variety of extended syntaxes, it does NOT support the following widely used extended syntaxes:
- ❌ Tables
- ❌ Emoji Shortcodes
- ❌ Highlights
The solution is replacing the package 'CommonMark.NET' by 'Markdig' (see Roadmap).