UtilMarkdownConvertMarkdownToHtml(FileInfo, MarkdownItPreset, MarkdownItOptions, Encoding) Method
Namespace: DevCase.Core.DataProcessing.MarkdownAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
static member ConvertMarkdownToHtml :
mdFile : FileInfo *
?preset : MarkdownItPreset *
?options : MarkdownItOptions *
?encoding : Encoding
(* Defaults:
let _preset = defaultArg preset MarkdownItPreset.Default
let _options = defaultArg options null
let _encoding = defaultArg encoding null
*)
-> string
No code example is currently available or this language may not be supported.
- mdFile FileInfo
-
The source markdown document (md) file.
- 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.
- encoding Encoding (Optional)
-
Optionally specifies the text encoding used to read the markdown document.
Default value: Default
String
The resulting html string.
This is a code example.
No code example is currently available or this language may not be supported.
Dim md = New FileInfo(".\Markdown.md")
Dim html As String = ConvertMarkdownToHtml(md, MarkdownItPreset.Default, encoding:=Encoding.UTF8)
Console.WriteLine(html)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.