Skip to content

Commit

Permalink
Some minor Markdown tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 14, 2016
1 parent 757b0bc commit 2f14084
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions IcculusFinger_archiveplans.pl
Expand Up @@ -109,6 +109,7 @@ sub run_external_updater {
1 while ($t =~ s/\[section=".*?"\](\n|\r\n|\b)(.*?)\[\/section\](\n|\r\n|\b)/$2/is);
1 while ($t =~ s/\[font(.*?)\](.*?)\[\/font\]/<font $1>$2<\/font>/is);
1 while ($t =~ s/\[noarchive\](.*?)\[\/noarchive\]/$1/is);
1 while ($t =~ s/\[markdown\](.*?)\[\/markdown\]/$1/is);

print(" parsed markup tags...\n") if $debug;
my $newssubj = "Notable .plan update from $u";
Expand Down
4 changes: 3 additions & 1 deletion IcculusFinger_daemon.pl
Expand Up @@ -1332,7 +1332,9 @@ sub do_fingering {
# Change [markdown][/markdown] tags.
while ($output_text =~ s/(.*?)\[markdown](.*?)\[\/markdown\]//is) {
$final .= process_tags($1);
$final .= $do_html_formatting ? markdown($2) : $2;
my $md = $2;
$md =~ s/\A\n//;
$final .= $do_html_formatting ? markdown($md) : $md;
}
$final .= process_tags($output_text);
$output_text = $final;
Expand Down

0 comments on commit 2f14084

Please sign in to comment.