Themed 2026 Presentation Style Preview

MarkdownFileGenerateIdFromTitle Method

This is used to generate a content ID from a title

Definition

Namespace: Sandcastle.Core.Markdown
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2025.12.18.0
public static string GenerateIdFromTitle(
	string title
)

Parameters

title  String
The title to convert to an ID

Return Value

String
An ID generated from the title. All non-alphanumeric characters are replaced with dashes. Runs of multiple dashes are replaced with a single dash. Leading and trailing dashes are removed.

See Also