Skip to content

Commit dad1ebd

Browse files
committed
WIP
1 parent 6fcb024 commit dad1ebd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/MarkdownProcessor.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected function prepareForPdf(string $html, int $index): string
143143
{
144144
$html = $this->wrapHeadersWithParagraphs($html);
145145

146-
if ($index > 1) {
146+
147147
$html = str_replace('<h1>', <<<'HTML'
148148
<span style="display: block;"></span>
149149
<div class="chapter-padding">
@@ -157,7 +157,6 @@ protected function prepareForPdf(string $html, int $index): string
157157
</div>
158158
<h1>
159159
HTML, $html);
160-
}
161160

162161
$html = str_replace([
163162
"<blockquote>\n<p>{notice}",

0 commit comments

Comments
 (0)