Markdown Microsoft



Writage is a cool little plug-in for Microsoft Word that lets you work with markdown files. Nice for focused writing while also giving you access to Word's editor features. Download this app from Microsoft Store for Windows 10, Windows 10 Team (Surface Hub), HoloLens. See screenshots, read the latest customer reviews, and compare ratings for Markdown Lite.

-->

Warning

To games for mac. (This API is will be removed in the future. Please consider using Markdig for Markdown document parsing.

Markdown Microsoft

The MarkdownDocument class allows you to parse a Markdown String into a Markdown Document, and then Render it with a Markdown Renderer.

Tigervnc

Example

Markdown Microsoft Cloud

Classes

ClassPurpose
Microsoft.Toolkit.Parsers.Markdown.MarkdownDocumentRepresents a Markdown Document.
Microsoft.Toolkit.Parsers.Markdown.Render.MarkdownRendererBaseA base renderer for Rendering Markdown into Controls.

MarkdownDocument

Properties

PropertyTypeDescription
BlocksIList<MarkdownBlock>Gets or sets the list of block elements.

Markdown Microsoft Flow

Microsoft

Methods

Markdown Microsoft Teams

MethodsReturn TypeDescription
Parse(string)voidParses markdown document text.
LookUpReference(string)LinkReferenceBlockLooks up a reference using the ID.

Create a Markdown Renderer

Markdown Microsoft Teams

In order to create a Markdown Renderer, you can either implement your own, or inherit from MarkdownRendererBase, this class already has all the required methods, and some assistive code to make implementing a Renderer easy, all you have to do is implement the Block and Inline Rendering, and the output.

This requires an inherited IRenderContext, which allows you to keep track of the Context of the rendering.

The best way to figure out how to create a Renderer, is to look at the implementation for the UWP MarkdownTextBlock control.

Sample Project

Markdown Parser Sample Page Source. You can see this in action in the Windows Community Toolkit Sample App.

Requirements

Implementation.NET Standard 1.4.
NamespaceMicrosoft.Toolkit.Parsers
NuGet packageMicrosoft.Toolkit.Parsers

API