Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add title color to h1 title elements #116

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading