Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 3.7 KB

File metadata and controls

53 lines (39 loc) · 3.7 KB

MdDocument Class

Namespace: Grynwald.MarkdownGenerator
Assembly: Grynwald.MarkdownGenerator

Represents a markdown document

public sealed class MdDocument : IDocument

Inheritance: object → MdDocument

Implements: IDocument

Constructors

Name Description
MdDocument(IEnumerable<MdBlock>) Initializes a new instance of MdDocument with the specified content.
MdDocument(MdAdmonition) Initializes a new instance of MdDocument with the specified content.
MdDocument(MdBlockQuote) Initializes a new instance of MdDocument with the specified content.
MdDocument(MdBlock[]) Initializes a new instance of MdDocument with the specified content.
MdDocument(MdContainerBlock) Initializes a new instance of MdDocument with the specified block as root element.
MdDocument(MdList) Initializes a new instance of MdDocument with the specified content.

Properties

Name Description
Root The root container block containing all of the document's blocks

Methods

Name Description
Save(Stream) Saves the document to a stream.
Save(Stream, MdSerializationOptions) Saves the document to a stream using the specified serialization options.
Save(string) Saves the document to the specified file.
Save(string, MdSerializationOptions) Saves the document to the specified file using the specified serialization options.
ToString() Converts the document to a Markdown string.
ToString(MdSerializationOptions) Converts the document to a Markdown string using the specified serialization options.

Documentation generated by MdDocs