basic hr support
Ted Unangst tedu@tedunangst.com
Tue, 12 Nov 2019 15:04:19 -0500
2 files changed,
5 insertions(+),
0 deletions(-)
M
docs/honk.5
→
docs/honk.5
@@ -62,6 +62,10 @@ .Dq http
or .Dq https will be autolinked. +.It rules +Exactly three dashes on a line, +.Dq --- , +will become a horizontal rule. .El .Pp If the first line of a honk begins with
M
markitzero.go
→
markitzero.go
@@ -78,6 +78,7 @@ s = re_zerolink.ReplaceAllString(s, `<a href="$2">$1</a>`)
s = re_bolder.ReplaceAllString(s, "$1<b>$2</b>$3") s = re_italicer.ReplaceAllString(s, "$1<i>$2</i>$3") s = re_quoter.ReplaceAllString(s, "<blockquote>$1</blockquote><p>") + s = strings.Replace(s, "\n---\n", "<hr><p>", -1) s = re_lister.ReplaceAllStringFunc(s, func(m string) string { m = strings.Trim(m, "\n")