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.
The MarkdownDocument class allows you to parse a Markdown String into a Markdown Document, and then Render it with a Markdown Renderer.
Example
Markdown Microsoft Cloud
Classes
Class | Purpose |
---|---|
Microsoft.Toolkit.Parsers.Markdown.MarkdownDocument | Represents a Markdown Document. |
Microsoft.Toolkit.Parsers.Markdown.Render.MarkdownRendererBase | A base renderer for Rendering Markdown into Controls. |
MarkdownDocument
Properties
Property | Type | Description |
---|---|---|
Blocks | IList<MarkdownBlock> | Gets or sets the list of block elements. |
Markdown Microsoft Flow
Methods
Markdown Microsoft Teams
Methods | Return Type | Description |
---|---|---|
Parse(string) | void | Parses markdown document text. |
LookUpReference(string) | LinkReferenceBlock | Looks 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. |
---|---|
Namespace | Microsoft.Toolkit.Parsers |
NuGet package | Microsoft.Toolkit.Parsers |