Skip to content

Add feature

Latest
Compare
Choose a tag to compare
@whistyun whistyun released this 16 Apr 10:17
· 70 commits to master since this release
  • Links to anchors
  • Disable enhanced syntax

Links to anchors

MarkdownScrollViewer enable links to anchors.
This feature is enabled when MarkdownScrollViewer.ClickAction is set to OpenBrowser, DisplayWithRelativePath or DisplayAll.
Anchor generation rules are the same as for Markdig.

* [Heading1](#heading-1)
* [Heading with link](#heading-with-link)
* [Tag has id attribute](#test)

## Heading (1)

## [Heading with link](https://google.com)

<h2 id="test">Tag has id attribute</h2>

Disable enhanced syntax

MarkdownScrollViewer has a new property; Syntax. This property toggles the enable/disable of enhanced sytax.

There is three property values; Plain, Standard and MdXaml.

  • Plain disables all enhanced syntax. This is similar to Markdown 1.0.1.
  • Standard enables table syntax.
  • MdXaml enables all ehnahced syntax.
<!-- xmlns:mdxam="clr-namespace:MdXaml;assembly=MdXaml" -->
<mdxam:MarkdownScrollViewer
 Syntax="Standard"
 />