3rdparty: disable some unneeded and unexpected markdown replacements

This commit is contained in:
E. S. 2025-05-15 20:23:01 +03:00
parent ce2f9058dc
commit 0e188b20f6

View File

@ -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