all repos — honk @ f188303d2682a924c1b34c9f05e0c6a7fba2e496

my fork of honk

basic hr support
Ted Unangst tedu@tedunangst.com
Tue, 12 Nov 2019 15:04:19 -0500
commit

f188303d2682a924c1b34c9f05e0c6a7fba2e496

parent

9ed376881433161026dbb0c49b20408850ab83db

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M docs/honk.5docs/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.gomarkitzero.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")