Skip to content

Commit

Permalink
Use markdown HR for new panel
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Feb 21, 2024
1 parent 31048ce commit d39e82d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions classes/Renderer/Markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ public function markdown_document($this_page){
}
return "<h$level id=\"$slug\" class=\"$title_class\">$htitle</h$level>";
}, $html);



// Create new panel when horizontal line used
$html = preg_replace('/<hr \/>/i', '</div><div class="panel">', $html);

\MySociety\TheyWorkForYou\Renderer::output('static/markdown_template', array(
'html' => $html,
'this_page' => $this_page,
Expand Down

0 comments on commit d39e82d

Please sign in to comment.