2025-01-22 20:49:27 -05:00
|
|
|
use v6.e.PREVIEW;
|
|
|
|
|
|
|
|
use Pandoc;
|
|
|
|
use JSON::Class:auth<zef:vrurg>;
|
|
|
|
|
|
|
|
use DB::Post;
|
|
|
|
|
|
|
|
#| A plain markdown post
|
2025-02-02 17:57:27 -05:00
|
|
|
unit class MarkdownPost does Post is json(:pretty);
|
2025-01-22 20:49:27 -05:00
|
|
|
|
|
|
|
#| Marker for disambiguation between post types in json representation, the
|
|
|
|
#| cheaty way
|
|
|
|
has Bool:D $.markdown = True;
|
|
|
|
|
|
|
|
method title(--> Str:D) {
|
|
|
|
markdown-title($!source)
|
|
|
|
}
|