From 42febc1e6489a2e97e12fc257f5d29ca943c65d6 Mon Sep 17 00:00:00 2001 From: Rodrigo Ghedin Date: Sun, 18 Jan 2026 08:34:53 -0300 Subject: [PATCH] Add support for blockquotes --- markdown-comments-for-wordpress.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/markdown-comments-for-wordpress.php b/markdown-comments-for-wordpress.php index 2c03c98..229256e 100644 --- a/markdown-comments-for-wordpress.php +++ b/markdown-comments-for-wordpress.php @@ -175,6 +175,11 @@ function markdown_comments_apply_inline_formatting( $text ) { return '' . esc_html($matches[1]) . ''; }, $text ); + // Blockquotes. + $text = preg_replace_callback( '/(?:^>\s?(.*)$\n?)+/m', function($matches) { + return '
' . esc_html($matches[1]) . '
'; + }, $text ); + return $text; }