Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/msgfmt
diff options
context:
space:
mode:
Diffstat (limited to 'msgfmt')
-rwxr-xr-xmsgfmt3
1 files changed, 3 insertions, 0 deletions
diff --git a/msgfmt b/msgfmt
index 8579a0c..be734f0 100755
--- a/msgfmt
+++ b/msgfmt
@@ -98,6 +98,9 @@ awk -vid="$id" -vurl_root="${url_root%/}" -vcref_errlog="$cref_errlog" '
# paragraph, unless that paragraph is also indented)
s#\n\n \+\(\([^\n]\+\n\(\n \+\)\?\)\+\)#<blockquote>\1</blockquote>#g
+ # pre-formatted block. markdown-style
+ s#\n\n \+\(\([^\n]\+\n\(\n \+\)\?\)\+\)#<blockquote>\1</blockquote>#g
+
# unfortunately, non-greedy matches make it difficult to exclude punctuation
# at the end of a link, so we will handle it in a separate expression
s#[fh]ttps\?://[^]\n )]\+#<a href="&">&</a>#g;