render markdown

This commit is contained in:
Nathan McCarty 2025-02-03 21:51:09 -05:00
parent 815ff4bf4e
commit addce4f87c
2 changed files with 13 additions and 8 deletions

View file

@ -2,7 +2,6 @@ use v6.e.PREVIEW;
use Pandoc;
use JSON::Class:auth<zef:vrurg>;
use DB::Post;
#| A plain markdown post
@ -13,10 +12,10 @@ unit class MarkdownPost does Post is json(:pretty);
has Bool:D $.markdown = True;
method title(--> Str:D) {
markdown-title($!source)
markdown-title $!source
}
# Simply provide our source file to pandoc
method render-html(--> Str:D) {
die "Not implemented";
markdown-to-html $!source
}