From 760bcda8f84b6baa646cfc20c86baa7cc0afde40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=81=E6=9F=B1?= Date: Wed, 4 Apr 2018 15:07:28 +0800 Subject: [PATCH 1/2] Fix bug: Add bufio import --- zh/build_new.go | 1 + 1 file changed, 1 insertion(+) diff --git a/zh/build_new.go b/zh/build_new.go index d4400fb9..a11f375a 100644 --- a/zh/build_new.go +++ b/zh/build_new.go @@ -3,6 +3,7 @@ package main import ( "fmt" "io/ioutil" + "bufio" "net/http" "os" "path/filepath" From 8ba1885989788022da2879f5623da5749df500fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=81=E6=9F=B1?= Date: Wed, 4 Apr 2018 15:16:27 +0800 Subject: [PATCH 2/2] Fix bug: no ")" on line 71 --- zh/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/build.go b/zh/build.go index 175cc789..60294a18 100644 --- a/zh/build.go +++ b/zh/build.go @@ -68,7 +68,7 @@ func (self *Visitor) md2html(arg map[string]string) error { opts.Smartypants = true opts.Fractions = true // r1 := []rune(s1) - m := mark.New(input, opts + m := mark.New(input, opts) w := bufio.NewWriter(out) n4, err := w.WriteString(s + m.Render()) fmt.Printf("wrote %d bytes\n", n4)