From 551924950fcd25dd9f864fbf302af5812915f36c Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sun, 2 Nov 2025 01:57:23 +0100 Subject: [PATCH] Add h4 formatting for markdown formatter --- src/MDFormatter.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/MDFormatter.php b/src/MDFormatter.php index 736c236..1f0c324 100644 --- a/src/MDFormatter.php +++ b/src/MDFormatter.php @@ -77,6 +77,19 @@ final class MDFormatter { } + /** + * Applies markdown formatting for fourth level headline. + * + * @param string $input Headline text. + * + * @return string + */ + public static function formatMarkdownHeadline4(string $input):string { + + return '#### ' . $input . PHP_EOL; + + } + /** * Returns a horizontal rule in markdown. *