AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.3.0" />

 PrettyMarkupFormatter

Represents the an HTML5 markup formatter with inserted indents.
public string Indentation { get; set; }

Gets or sets the indentation string.

public string NewLine { get; set; }

Gets or sets the newline string.

Creates a new instance of the pretty markup formatter.

public PrettyMarkupFormatter(IEnumerable<INode> preserveTextFormatting)

Creates a new instance of the pretty markup formatter, along with nodes where formatting of text shall be ignored