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 recursive, i.e. if the child documents contain child-child documents, they are expanded, too.
Namespace: Altaxo.TextAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic 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.
RemarksSince finding Altaxo graphs embedded in the markdown depends 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