Commit 4d47b098 authored by phani00's avatar phani00 Committed by Mario

remove some fancy formatting.

(cherry picked from commit aaab905e)
parent 163754a4
Pipeline #98581 passed with stage
in 12 minutes and 25 seconds
......@@ -1022,7 +1022,6 @@ function bbcode($Text, $options = []) {
// Check for colored text
if (strpos($Text,'[/hl]') !== false) {
$Text = preg_replace("(\[hl\](.*?)\[\/hl\])ism", "<span class=\"default-highlight\">$1</span>", $Text);
// $Text = preg_replace("(\[hl\](.*?)\[\/hl\])ism", "<span style=\"background-color: yellow;\">$1</span>", $Text);
$Text = preg_replace("(\[hl=(.*?)\](.*?)\[\/hl\])ism", "<span style=\"background-color: $1;\">$2</span>", $Text);
}
......
......@@ -1808,8 +1808,4 @@ dl.bb-dl > dd > li {
span.default-highlight {
background-color: yellow;
color: #111;
margin: 0 2px;
padding: 2px 4px 2px 5px;
border-radius: 4px;
white-space: nowrap;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment