ChildDocumentExpanderExpandDocumentToNewDocument(TextDocument, String, Int32, ListMarkdownError) Method |
Expands the document to include child documents directly, leaving graphs as links, but changing their Uris appropriately.
This process is recursively, i.e. if the child documents contain child-child documents, they are expanded, too.
Namespace: Altaxo.TextAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static TextDocument ExpandDocumentToNewDocument(
TextDocument textDocument,
string targetDocumentFolder,
int recursionLevel = 0,
List<MarkdownError>? errors = null
)
Parameters
- textDocument TextDocument
- The original text document. This document is not changed during the expansion.
- targetDocumentFolder String
- Folder path of the final document that is the target of the expansion process.
- recursionLevel Int32 (Optional)
- The recursion level. Start with 0 here.
- errors ListMarkdownError (Optional)
- A list that collects error messages.
Return Value
TextDocumentA 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