fix: try something new for coloredtext

This commit is contained in:
Floorb 2023-05-27 17:34:01 -04:00
parent 230aeb6abd
commit 19133bf440

View file

@ -16,7 +16,7 @@ class Pastedown extends ParsedownExtra {
if (preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
{
$Block = array(
'markup' => "<span class=\"greentext\">" . pp_html_escape($matches[0]) . "</span>",
'markup' => "<div class=\"greentext\">" . pp_html_escape($matches[0]) . "</div>",
'extent' => strlen($matches[0])
);
@ -29,7 +29,7 @@ class Pastedown extends ParsedownExtra {
if (preg_match('/^<[ ]?(.*)/', $Line['text'], $matches))
{
$Block = array(
'markup' => "<span class=\"redtext\">" . pp_html_escape($matches[0]) . "</span>",
'markup' => "<div class=\"redtext\">" . pp_html_escape($matches[0]) . "</div>",
'extent' => strlen($matches[0])
);
@ -42,7 +42,7 @@ class Pastedown extends ParsedownExtra {
if (preg_match('/^@[ ]?(.*)/', $Line['text'], $matches))
{
$Block = array(
'markup' => "<span class=\"purpletext\">" . pp_html_escape($matches[0]) . "</span>",
'markup' => "<div class=\"purpletext\">" . pp_html_escape($matches[0]) . "</div>",
'extent' => strlen($matches[0])
);