Markdown.Decode Method
- Namespace
- Kampute.DocToolkit.Support
- Assembly
- Kampute.DocToolkit.dll
| Markdown.Decode(string) | Decodes escaped Markdown special characters in the given text. |
| Markdown.Decode(ReadOnlySpan<char>, TextWriter) | Decodes escaped Markdown special characters in the given text and writes the result to the specified TextWriter. |
Markdown.Decode(string)
Decodes escaped Markdown special characters in the given text.
public static string Decode(string text)Parameters
textstring- The text to decode.
Returns
- string
- A string with escaped Markdown special characters restored to their original form.
Exceptions
- ArgumentNullException
- Thrown when
textisnull.
Markdown.Decode(ReadOnlySpan<char>, TextWriter)
Decodes escaped Markdown special characters in the given text and writes the result to the specified TextWriter.
public static void Decode(ReadOnlySpan<char> text, TextWriter output)Parameters
textReadOnlySpan<char>- The text to decode.
outputTextWriter- The TextWriter to write the decoded text to.
Exceptions
- ArgumentNullException
- Thrown when
outputisnull.
