build: Add javascript for readability help

This commit is contained in:
snow flurry 2022-04-01 21:25:19 -07:00
parent c38561f9a9
commit 6fc7f2eb03

View file

@ -71,7 +71,7 @@ sub post_to_meta {
# perl regexes give people like me too much power # perl regexes give people like me too much power
$content{"body"} =~ s{\$fn:(.+)\$}{ $content{"body"} =~ s{\$fn:(.+)\$}{
$fn{$1} = ++$ifn; $fn{$1} = ++$ifn;
"<a class=\"fn\" name=\"fn-$1\" href=\"#fn-$1-text\">[" . $ifn . "]</a>" "<a class=\"fn\" onclick=\"fnClick(this)\" name=\"fn-$1\" href=\"#fn-$1-text\">[" . $ifn . "]</a>"
}egm; }egm;
$metadata{content} = $parser->markdown_to_html( $metadata{content} = $parser->markdown_to_html(