Markdown.NeedsEncoding Method

Namespace
Kampute.DocToolkit.Support
Assembly
  • Kampute.DocToolkit.dll

Definition

Determines whether the specified character is a Markdown special character that requires escaping.
public static bool NeedsEncoding(char c, bool excludeLineMarkers = false)

Parameters

c char
The character to check.
excludeLineMarkers bool optional
Indicates whether to exclude Markdown markers that are only valid at the start of a line.

Returns

bool
true if the character requires encoding; otherwise, false.