mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
fix: syntax highlighting for redtext
This commit is contained in:
parent
5538b40b77
commit
6f684e0283
2 changed files with 4 additions and 5 deletions
|
@ -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'];
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue