all repos — honk @ b39e46d3b92356f24d24cf3794dcb488de12b1a2

my fork of honk

better style for blockquote
Ted Unangst tedu@tedunangst.com
Tue, 14 May 2019 11:11:11 -0400
commit

b39e46d3b92356f24d24cf3794dcb488de12b1a2

parent

eb9d60e1996a0cc48e279b735d2e15bf68e194ef

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

jump to
M fun.gofun.go

@@ -151,6 +151,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

@@ -167,6 +168,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:]
M views/style.cssviews/style.css

@@ -7,6 +7,11 @@ }

pre, code { white-space: pre-wrap; } +blockquote { + margin-left: 0em; + padding-left: 0.5em; + border-left: 1px solid #aab; +} a { color: #dde; }