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) 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"