mirror of
https://github.com/kevachat/geminiapp.git
synced 2025-03-13 05:51:39 +00:00
fix escape priority
This commit is contained in:
parent
4006969355
commit
a9b25064ac
@ -433,12 +433,19 @@ class Room
|
||||
$line
|
||||
);
|
||||
|
||||
// Escape inline *
|
||||
$line = preg_replace(
|
||||
'/[*]{1}([^*]+)[*]{1}/',
|
||||
'[*]$1[*]',
|
||||
$line
|
||||
);
|
||||
|
||||
// Process each tag on line beginning
|
||||
foreach (
|
||||
[
|
||||
'#',
|
||||
'##',
|
||||
'###',
|
||||
'##',
|
||||
'#',
|
||||
'=>',
|
||||
'>',
|
||||
'*',
|
||||
@ -457,13 +464,6 @@ class Room
|
||||
);
|
||||
}
|
||||
|
||||
// Escape inline *
|
||||
$line = preg_replace(
|
||||
'/[*]{1}([^*]+)[*]{1}/',
|
||||
'[*]$2[*]',
|
||||
$line
|
||||
);
|
||||
|
||||
// Merge lines
|
||||
$lines[] = $line;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user