Skip to content

Commit

Permalink
Update markdown.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ystyle authored Oct 17, 2023
1 parent 3e1930b commit 5cef784
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions markdown.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package sqlmanager

import (
"bytes"
"errors"
"github.com/gomarkdown/markdown"
"github.com/gomarkdown/markdown/ast"
Expand All @@ -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)
Expand Down

0 comments on commit 5cef784

Please sign in to comment.