render markdown
This commit is contained in:
parent
815ff4bf4e
commit
addce4f87c
2 changed files with 13 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue