Browse Source

add underline escape

main
ghost 10 months ago
parent
commit
5b97b6a41d
  1. 8
      src/controller/room.php

8
src/controller/room.php

@ -595,10 +595,16 @@ class Room
$line $line
); );
// Escape inline * // Escape inline
$line = preg_replace( $line = preg_replace(
[
'/[*]{1}([^*]+)[*]{1}/', '/[*]{1}([^*]+)[*]{1}/',
'/[_]{1}([^*]+)[_]{1}/',
],
[
'[*]$1[*]', '[*]$1[*]',
'[_]$1[_]',
],
$line $line
); );

Loading…
Cancel
Save