From 0e188b20f64d1d8ea540a014d37a3cee928986f5 Mon Sep 17 00:00:00 2001 From: "E. S." Date: Thu, 15 May 2025 20:23:01 +0300 Subject: [PATCH] 3rdparty: disable some unneeded and unexpected markdown replacements --- src/thirdparty/ParsedownExtended.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/thirdparty/ParsedownExtended.php b/src/thirdparty/ParsedownExtended.php index 2eafcec..c2390fd 100644 --- a/src/thirdparty/ParsedownExtended.php +++ b/src/thirdparty/ParsedownExtended.php @@ -712,14 +712,14 @@ class ParsedownExtended extends Parsedown // Define substitutions for various typographic symbols $substitutions = [ - '/\(c\)/i' => html_entity_decode('©'), // Replace (c) with © symbol - '/\(r\)/i' => html_entity_decode('®'), // Replace (r) with ® symbol - '/\(tm\)/i' => html_entity_decode('™'), // Replace (tm) with ™ symbol + // '/\(c\)/i' => html_entity_decode('©'), // Replace (c) with © symbol + // '/\(r\)/i' => html_entity_decode('®'), // Replace (r) with ® symbol + // '/\(tm\)/i' => html_entity_decode('™'), // Replace (tm) with ™ symbol '/\(p\)/i' => html_entity_decode('¶'), // Replace (p) with ¶ symbol (paragraph) '/\+-/i' => html_entity_decode('±'), // Replace +- with ± symbol - '/\!\.{3,}/i' => '!..', // Replace more than three exclamation points with '!..' - '/\?\.{3,}/i' => '?..', // Replace more than three question marks with '?..' - '/\.{2,}/i' => $ellipses, // Replace ellipses with either smart ellipses or '...' + // '/\!\.{3,}/i' => '!..', // Replace more than three exclamation points with '!..' + // '/\?\.{3,}/i' => '?..', // Replace more than three question marks with '?..' + // '/\.{2,}/i' => $ellipses, // Replace ellipses with either smart ellipses or '...' ]; // Apply substitutions using regular expressions