Seperate out title into seperate visual block
This commit is contained in:
parent
e833e18748
commit
e7fdf59618
3 changed files with 37 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue