= version->declare('v0.0.5');
use App::unbelievable::Util;
use File::Slurp;
use File::Spec;
use JSON;
use Plack::Builder;
use Syntax::Highlight::Engine::Kate;
use Syntax::Highlight::Engine::Kate::Al
my @errors;
my $reader;
# Look for JSON frontmatter without separators (Hugo-style).
my $charcount;
eval {
$reader = JSON->new;
($frontmatter, $charcount) = $read
rkdown = substr $text, $charcount//0;
};
push @errors, "Could not read JSON: $@" if $@;
push @errors, "No JSON found" unless $charcount;
return ($frontmatter, $markdown) unless(@error