Skip to content

Commit

Permalink
Add title color to h1 title elements (#116)
Browse files Browse the repository at this point in the history
Co-authored-by: haszi <[email protected]>
  • Loading branch information
haszi and haszi authored Apr 22, 2024
1 parent 93a0c11 commit 150f707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpdotnet/phd/Package/PHP/XHTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ public function format_chunk($open, $name, $attrs, $props) {

public function format_container_chunk_title($open, $name, $attrs, $props) {
if ($open) {
return $props["empty"] ? '' : '<h1>';
return $props["empty"] ? '' : '<h1 class="title">';
}
$ret = "";
if (isset($this->cchunk["container_chunk"]) && $this->cchunk["container_chunk"]) {
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/faq001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $render->run();
Filename: faq.001.html
Content:
<div id="faq.001" class="chapter">
<h1>FAQ Test 001</h1>
<h1 class="title">FAQ Test 001</h1>



Expand Down

0 comments on commit 150f707

Please sign in to comment.