未验证 提交 c610e8c1 编写于 作者: A astaxie 提交者: GitHub

Merge pull request #976 from tdifg/master

Fix bug: Add bufio import
...@@ -68,7 +68,7 @@ func (self *Visitor) md2html(arg map[string]string) error { ...@@ -68,7 +68,7 @@ func (self *Visitor) md2html(arg map[string]string) error {
opts.Smartypants = true opts.Smartypants = true
opts.Fractions = true opts.Fractions = true
// r1 := []rune(s1) // r1 := []rune(s1)
m := mark.New(input, opts m := mark.New(input, opts)
w := bufio.NewWriter(out) w := bufio.NewWriter(out)
n4, err := w.WriteString(s + m.Render()) n4, err := w.WriteString(s + m.Render())
fmt.Printf("wrote %d bytes\n", n4) fmt.Printf("wrote %d bytes\n", n4)
......
...@@ -3,6 +3,7 @@ package main ...@@ -3,6 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"bufio"
"net/http" "net/http"
"os" "os"
"path/filepath" "path/filepath"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册