fix: syntax highlighting for redtext

This commit is contained in:
Floorb 2023-05-16 23:40:16 -04:00
parent 5538b40b77
commit 6f684e0283
2 changed files with 4 additions and 5 deletions

View file

@ -6,7 +6,7 @@ use ParsedownExtra;
class Pastedown extends ParsedownExtra {
public function __construct() {
$this->BlockTypes['>'] = ['Greentext'];
$this->BlockTypes['<'] []= ['Redtext'];
array_unshift($this->BlockTypes['<'], 'Redtext');
$this->BlockTypes['@'] = ['Purpletext'];
}

View file

@ -262,16 +262,15 @@ code {
white-space: pre-wrap;
}
.content .greentext {
.greentext {
color: #789922;
content: ">";
}
.content .redtext {
.redtext {
color: #d12222;
}
.content .purpletext {
.purpletext {
color: #9f14ae;
}