Alignment fix, not in original plaintext because most or all terminals
lack cc support.
Html({
title => "unicode sampler",
- version => '2.0',
+ version => '2.1',
stylesheet => [qw'light dark mono red'],
data => [$textinc],
raw => qq(<meta property="og:image" content="$preview" />),
while (my $p = readline $source) {
EscapeHTML($p);
$p =~ s{ \A ((\pL+) \N*:) \n }{<h2 id="\L$2\E">$1</h2>}x;
+ if ($2 eq 'Unicode') {
+ # table without proper direction control
+ $p =~ s/^(?= )/\x{202d}/gm; # ltr override every line
+ }
$p =~ s{(?<=^ )([\p{Latin} ]+:)}{<em>$1</em>}gm;
print $p;
}