Skip to content

Commit

Permalink
adding utf-8 charset meta tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
nehashri committed Jun 25, 2018
1 parent 8259b1d commit 736d5d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conv/conv.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func ConvertFile(file string, files []string, index int) {
name := strings.TrimSuffix(relPath, filepath.Ext(relPath)) + dotHtml
f, err := os.Create(filepath.Join(outDir, name))
util.Fatal(fmt.Sprintf("Error while creating %s file", filepath.Join(outDir, name)), err)
f.Write([]byte("<article class='markdown-body'>" + output + "</article>"))
f.Write([]byte("<article class='markdown-body'><meta charset=\"utf-8\">" + output + "</article>"))
f.Close()
}

Expand Down
2 changes: 1 addition & 1 deletion spectacle.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func createIndex() {
style := fmt.Sprintf(conv.IncludeCSS, conv.StyleCSS)
header := fmt.Sprintf(constant.IndexContent, strings.Title(filepath.Base(projectRoot)))
input := style + constant.DataFile + header + constant.IndexJS
f.WriteString("<article class='markdown-body'>" + input + "</article>")
f.WriteString("<article class='markdown-body'><meta charset=\"utf-8\">" + input + "</article>")
f.Close()
}

Expand Down

0 comments on commit 736d5d6

Please sign in to comment.