diff --git a/markdown.go b/markdown.go index 3940540..5c6c7eb 100644 --- a/markdown.go +++ b/markdown.go @@ -1,7 +1,6 @@ package sqlmanager import ( - "bytes" "errors" "github.com/gomarkdown/markdown" "github.com/gomarkdown/markdown/ast" @@ -11,9 +10,7 @@ import ( func parseMarkdown(buf []byte, prefix string) ([]SqlTemple, error) { var sqls []SqlTemple - if bytes.ContainsRune(buf, '\r') { - buf = markdown.NormalizeNewlines(buf) - } + buf = markdown.NormalizeNewlines(buf) psr := parser.New() node := markdown.Parse(buf, psr) list := getAll(node)