3rdparty: disable some unneeded and unexpected markdown replacements
This commit is contained in:
parent
ce2f9058dc
commit
0e188b20f6
12
src/thirdparty/ParsedownExtended.php
vendored
12
src/thirdparty/ParsedownExtended.php
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user