Seperate out title into seperate visual block

This commit is contained in:
Nathan McCarty 2025-02-04 22:24:37 -05:00
parent e833e18748
commit e7fdf59618
3 changed files with 37 additions and 9 deletions

View file

@ -92,5 +92,8 @@ sub markdown-first-paragraph(IO::Path:D $file --> Str:D) is export {
#| Use pandoc to render a markdown document to html
sub markdown-to-html(IO::Path:D $file --> Str:D) is export {
pandoc <-f gfm>, $file
# Remove the header, we'll regenerate it later
my $output = pandoc <-f gfm>, $file;
$output ~~ s:g/'<h1' .* '</h1>'//;
$output
}