Convert Hugo Hint Blocks
Zuletzt geändert: 14.03.2026 05:56

Convert-HugoHintBlocks #

ÜBERSICHT #

Wandelt GitHub-Hinweisblöcke in Hugo-Hint-Shortcodes um.

SYNTAX #

Convert-HugoHintBlocks [-Content] <string> [<CommonParameters>]

BESCHREIBUNG #

Erkennt GitHub-kompatible Hinweisblöcke wie > [!NOTE], > [!WARNING] usw. und wandelt sie in Hugo-Shortcodes der Form `

` um.

Unterstützte Typen und ihre Zuordnung: [!NOTE], [!TIP], [!INFO] -> hint info [!IMPORTANT], [!WARNING] -> hint warning [!CAUTION], [!DANGER] -> hint danger

Der Block wird durch eine Leerzeile oder eine Zeile ohne führendes > beendet. Zeilenenden (LF/CRLF) des Eingabetextes werden beibehalten.

PARAMETER #

-Content #

Type: string

Der Markdown-Inhalt als String.

AUSGABEN #

[string] -- Der konvertierte Inhalt mit Hugo-Shortcodes.

BEISPIELE #

$converted = Convert-HugoHintBlocks -Content (Get-Content 'page.md' -Raw)