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
3838 $ codeBlocks = $ dom ->find ('.language-PHP ' );
3939 foreach ($ codeBlocks as $ block )
4040 {
41- $ this ->page ->addStyleSheet ('highlighter/styles/PHPFUI.css ' );
4241 $ child = $ block ->firstChild ();
4342 $ highlighted = $ hl ->highlight ('php ' , $ child ->text ());
4443 $ 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)
2121 $ this ->mainColumn = new \PHPFUI \Cell (12 , 8 , 9 );
2222 $ this ->addStyleSheet ('css/styles.css ' );
2323 $ this ->addStyleSheet ('css/markdown.css ' );
24+ $ this ->addStyleSheet ('highlighter/styles/PHPFUI.css ' );
2425 }
2526
2627 public function addBody ($ item ) : PageInterface
You can’t perform that action at this time.
0 commit comments