blockquote injection was just for testing, revert.

This commit is contained in:
Ted Unangst 2019-05-14 11:13:24 -04:00
parent 751b231a56
commit 5e5438043b
1 changed files with 0 additions and 2 deletions

2
fun.go
View File

@ -151,7 +151,6 @@ var re_bolder = regexp.MustCompile(`(^|\W)\*\*([\w\s,.!?']+)\*\*($|\W)`)
var re_italicer = 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_bigcoder = regexp.MustCompile("```\n?((?s:.*?))\n?```")
var re_coder = regexp.MustCompile("`([^`]*)`") var re_coder = regexp.MustCompile("`([^`]*)`")
var re_quoter = regexp.MustCompile(`(?m:^> (.*)\n)`)
func markitzero(s string) string { func markitzero(s string) string {
var bigcodes []string var bigcodes []string
@ -168,7 +167,6 @@ func markitzero(s string) string {
s = re_coder.ReplaceAllStringFunc(s, lilsaver) s = re_coder.ReplaceAllStringFunc(s, lilsaver)
s = re_bolder.ReplaceAllString(s, "$1<b>$2</b>$3") s = re_bolder.ReplaceAllString(s, "$1<b>$2</b>$3")
s = re_italicer.ReplaceAllString(s, "$1<i>$2</i>$3") s = re_italicer.ReplaceAllString(s, "$1<i>$2</i>$3")
s = re_quoter.ReplaceAllString(s, "<blockquote>$1</blockquote>")
lilun := func(s string) string { lilun := func(s string) string {
code := lilcodes[0] code := lilcodes[0]
lilcodes = lilcodes[1:] lilcodes = lilcodes[1:]