Skip to content

shinexyt/markdig.wpf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdig-WPF NuGet

Note: This repository is forked from Kryptos-FR/markdig-wpf

Key Enhancement: This fork adds Mathematics/LaTeX support with visual rendering powered by WPF-Math. See Math-Demo.md and LaTeX-Syntax-Test.md for examples and demonstrations.

A WPF library for xoofx/markdig

The project is split into two parts:

The WPF renderer allows you to transform markdown text to an equivalent FlowDocument that can then be used in a WPF control. For convenience an implementation of such control is given in MarkdownViewer.

The XAML renderer outputs a string in a similar way as the HTML renderer. This string can then be saved into a file or parsed by an application. It is less complete compared to the WPF renderer.

Markdig.Xaml.SampleApp illustrates a way to utilize the parsed XAML at runtime. It should be fine for small documents but might not be the best way for bigger one.

Features

Supports all standard features from Markdig (i.e. fully CommonMark compliant).

Additionally, the following extensions are supported:

  • Auto-links
  • Task lists (WPF renderer only)
  • Tables (partial support of grid and pipe tables) (WPF renderer only)
  • Extra emphasis
  • Mathematics/LaTeX with dual delimiter support:
    • Markdown style: $...$ (inline) and $$...$$ (block)
    • LaTeX style: \(...\) (inline) and \[...\] (block)

About

A WPF library for xoofx/markdig https://github.com/xoofx/markdig

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%