MarkdownDocument.GetDocumentTitle

Tries to retrieve the title from the active document and returns the title text or as a kebab case filename. If title can't be resolved null is returned.

public string GetDocumentTitle(string markdownText,
	bool asFilename)

Return Value

title, or filename or null if title can't be resolved

Parameters

markdownText
The Markdown text to search for a header. If not set uses MarkdownDocument.Filename

asFilename
if true returns title as a kebab case (- separated) filename


See also:

Class MarkdownDocument

© West Wind Technologies, 1996-2021 • Updated: 11/23/21
Comment or report problem with topic