MarkdownLoadOptions.PreserveEmptyLines
MarkdownLoadOptions PreserveEmptyLines property. Gets or sets a boolean value indicating whether to preserve empty lines while load a Markdown document. The default value is false.
MarkdownLoadOptions.PreserveEmptyLines property
Gets or sets a boolean value indicating whether to preserve empty lines while load a Markdown document. The default value is false
.
Normally, empty lines between block-level elements in Markdown are ignored. Empty lines at the beginning and end of the document are also ignored. This option allows to import such empty lines.
public bool PreserveEmptyLines { get; set; }
Examples
Shows how to instruct Wordize to preserve empty lines upon loading Markdown document.
MarkdownLoadOptions mdLoadOptions = new MarkdownLoadOptions();
mdLoadOptions.PreserveEmptyLines = true;
Converter.Create()
.From(MyDir + "Simple.md", mdLoadOptions)
.To(ArtifactsDir + "MarkdownLoadOptions.PreserveEmptyLines.docx")
.Execute();
See Also
- class MarkdownLoadOptions
- namespace Wordize.Loading
- assembly Wordize