remove some extra newlines that tend to appear in code blocks

This commit is contained in:
Ted Unangst 2019-05-11 10:41:47 -04:00
parent 41604becdc
commit 82d834e348
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

@ -156,7 +156,7 @@ func herdofemus(noise string) []Emu {
var re_bolder = regexp.MustCompile(`(^|\W)\*\*([\w\s,.!?']+)\*\*($|\W)`)
var re_italicer = regexp.MustCompile(`(^|\W)\*([\w\s,.!?']+)\*($|\W)`)
var re_bigcoder = regexp.MustCompile("```((?s:.*?))```")
var re_bigcoder = regexp.MustCompile("\n?```\n?((?s:.*?))\n?```\n?")
var re_coder = regexp.MustCompile("`(.*?)`")
func markitzero(s string) string {