Edit

Share via


MarkdownRendererBase.CollapseWhitespace(IRenderContext, String) Method

Definition

Removes leading whitespace, but only if this is the first run in the block.

protected string CollapseWhitespace (Microsoft.Toolkit.Parsers.Markdown.Render.IRenderContext context, string text);
member this.CollapseWhitespace : Microsoft.Toolkit.Parsers.Markdown.Render.IRenderContext * string -> string
Protected Function CollapseWhitespace (context As IRenderContext, text As String) As String

Parameters

context
IRenderContext
text
String

Returns

The corrected string

Applies to