Click or drag to resize

ChildDocumentExpanderExpandDocumentToNewDocument(TextDocument, Int32, ListMarkdownError) Method

Expands the document to include child documents directly, and converting any graph to an image. This process is recursively, i.e. if the child documents contain child-child documents, they are expanded, too.

Namespace: Altaxo.Text
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static TextDocument ExpandDocumentToNewDocument(
	TextDocument textDocument,
	int recursionLevel = 0,
	List<MarkdownError>? errors = null
)

Parameters

textDocument  TextDocument
The original text document. This document is not changed during the expansion.
recursionLevel  Int32  (Optional)
The recursion level. Start with 0 here.
errors  ListMarkdownError  (Optional)
A list that collects error messages.

Return Value

TextDocument
A new TextDocument. This text document contains the expanded markdown text. In addition, all Altaxo graphs are converted to local images.
Remarks
Since finding Altaxo graphs embedded in the markdown is depended on the context (location of the TextDocument and location of the graph), and we somewhat loose this context during the expansion, we convert the graphs to local images before we insert the document into the master document.
See Also