don't eat too many newlines. need a real parser here.
Ted Unangst tedu@tedunangst.com
Sat, 11 May 2019 21:50:39 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
fun.go
→
fun.go
@@ -156,7 +156,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?```\n?((?s:.*?))\n?```\n?") +var re_bigcoder = regexp.MustCompile("```\n?((?s:.*?))\n?```") var re_coder = regexp.MustCompile("`([^`]*)`") func markitzero(s string) string {