MarkdownRendererBase.CollapseWhitespace(IRenderContext, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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