UtilMarkdownConvertMarkdownToHtml(String, MarkdownItPreset, MarkdownItOptions) Method

Converts the source markdown text to html string.

This function internally uses markdown-it JavaScript library (https://github.com/markdown-it/markdown-it).

Definition

Namespace: DevCase.Core.DataProcessing.Markdown
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string ConvertMarkdownToHtml(
	string markdown,
	MarkdownItPreset preset = MarkdownItPreset.Default,
	MarkdownItOptions options = null
)

Parameters

markdown  String
The source markdown string.
preset  MarkdownItPreset  (Optional)
Optional preset value to quickly enable/disable active syntax rules and options for common use cases.

Default value: Default

options  MarkdownItOptions  (Optional)
Optional MarkdownItOptions object to configure advanced aspects of the conversion.

Return Value

String
The resulting html string.

Remarks

Note: To use this functionality you need to install this nuget package:

Microsoft.ClearScript.V8

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also