ormater;
use 5.010;
use strict;
use warnings;
use HTML::Entities qw(encode_entities);
use JSON qw(from_json);
our $VERSION = '0.51';
my %plugins = (
toc => \&_handle_toc,
image => \&_h
tr =~ m(\A\s*[\{\[]) ) {
$paramstr = '['.$paramstr.']';
}
my $params = eval {
from_json( $paramstr, { utf8 => 1 })
} or do print STDERR "Error Parsing params: $paramstr ==> $@\n";
params>, when existing, must be a list of valid JSON elements. If it is
a JSON object ({}), it will be used, otherwise it will be transformed
into a JSON array (by adding '[' in the begining and ']' o