Skip to content

Commit

Permalink
remove url query unescape against entire document; fixes #44
Browse files Browse the repository at this point in the history
  • Loading branch information
justmiles committed Feb 19, 2021
1 parent 04a5c06 commit 739273e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package lib
import (
"fmt"
"io/ioutil"
"net/url"
"strings"

"github.com/justmiles/go-confluence"
Expand Down Expand Up @@ -42,8 +41,7 @@ func (f *MarkdownFile) Upload(m *Markdown2Confluence) (urlPath string, err error
fmt.Println(f.Path)
}

//unescape unicode path %xx -> unicode word for some markdown software make escape
wikiContent, _ := url.QueryUnescape(string(dat))
wikiContent := string(dat)
var images []string
wikiContent, images, err = renderContent(f.Path, wikiContent, m.WithHardWraps)

Expand Down

0 comments on commit 739273e

Please sign in to comment.