MarkdownFileTopic.GenerateTitle Method

Namespace
Kampute.DocToolkit.Topics
Assembly
  • Kampute.DocToolkit.dll

Definition

Extracts the title of the topic from the Markdown file.
protected override string GenerateTitle()

Returns

string
The title of the topic.

Remarks

This method starts by checking the front matter for a "title" entry. If a valid title exists, it uses that as the topic title. If not, it tries to extract the first Markdown heading from the file. If successful, that heading becomes the title. Otherwise, it reverts to the base class's default title generation logic.