all repos — honk @ bcd3a707663b7e5f550cacb822cbf3cd596d6893

my fork of honk

let's try blockquotes for a bit
Ted Unangst tedu@tedunangst.com
Mon, 20 May 2019 10:55:18 -0400
commit

bcd3a707663b7e5f550cacb822cbf3cd596d6893

parent

fad39a3584f6809d15b877c97859618204210b73

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

jump to
M fun.gofun.go

@@ -161,6 +161,7 @@ var re_bolder = regexp.MustCompile(`(^|\W)\*\*([\w\s,.!?'-]+)\*\*($|\W)`)

var re_italicer = regexp.MustCompile(`(^|\W)\*([\w\s,.!?'-]+)\*($|\W)`) var re_bigcoder = regexp.MustCompile("```\n?((?s:.*?))\n?```") var re_coder = regexp.MustCompile("`([^`]*)`") +var re_quoter = regexp.MustCompile(`(?m:^> (.*)\n)`) func markitzero(s string) string { var bigcodes []string

@@ -177,6 +178,7 @@ }

s = re_coder.ReplaceAllStringFunc(s, lilsaver) 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>") lilun := func(s string) string { code := lilcodes[0] lilcodes = lilcodes[1:]