File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ public function text(string $markdown) : string
38
38
$ codeBlocks = $ dom ->find ('.language-PHP ' );
39
39
foreach ($ codeBlocks as $ block )
40
40
{
41
- $ this ->page ->addStyleSheet ('highlighter/styles/PHPFUI.css ' );
42
41
$ child = $ block ->firstChild ();
43
42
$ highlighted = $ hl ->highlight ('php ' , $ child ->text ());
44
43
$ block ->setAttribute ('class ' , 'hljs ' . $ highlighted ->language );
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ public function __construct(Controller $controller)
21
21
$ this ->mainColumn = new \PHPFUI \Cell (12 , 8 , 9 );
22
22
$ this ->addStyleSheet ('css/styles.css ' );
23
23
$ this ->addStyleSheet ('css/markdown.css ' );
24
+ $ this ->addStyleSheet ('highlighter/styles/PHPFUI.css ' );
24
25
}
25
26
26
27
public function addBody ($ item ) : PageInterface
You can’t perform that action at this time.
0 commit comments