summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--template.go6
3 files changed, 1 insertions, 11 deletions
diff --git a/go.mod b/go.mod
index 54d3532..1ba749b 100644
--- a/go.mod
+++ b/go.mod
@@ -6,11 +6,9 @@ require (
github.com/adrg/frontmatter v0.2.0
github.com/gomarkdown/markdown v0.0.0-20230322041520-c84983bdbf2a
github.com/google/go-cmp v0.5.9
- github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4
)
require (
github.com/BurntSushi/toml v0.3.1 // indirect
- golang.org/x/net v0.9.0 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
)
diff --git a/go.sum b/go.sum
index dbc1e37..03b21e1 100644
--- a/go.sum
+++ b/go.sum
@@ -6,10 +6,6 @@ github.com/gomarkdown/markdown v0.0.0-20230322041520-c84983bdbf2a h1:AWZzzFrqyjY
github.com/gomarkdown/markdown v0.0.0-20230322041520-c84983bdbf2a/go.mod h1:JDGcbDT52eL4fju3sZ4TeHGsQwhG9nbDV21aMyhwPoA=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
-github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4 h1:0sw0nJM544SpsihWx1bkXdYLQDlzRflMgFJQ4Yih9ts=
-github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4/go.mod h1:+ccdNT0xMY1dtc5XBxumbYfOUhmduiGudqaDgD2rVRE=
-golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM=
-golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
diff --git a/template.go b/template.go
index fef5e0f..ff6aeac 100644
--- a/template.go
+++ b/template.go
@@ -8,8 +8,6 @@ import (
"fmt"
"io"
"time"
-
- "github.com/yosssi/gohtml"
)
// TemplateData is the data passed to the HTML template.
@@ -27,9 +25,7 @@ type TemplateData struct {
// GenerateHTML generates the HTML file from the Markdown document.
func GenerateHTML(file io.Writer, fm FrontMatter, content string) error {
- // gohtml.NewWriter(file) is a simple wrapper thats beautify the HTML
- // output.
- return htmlTemplate.Execute(gohtml.NewWriter(file), TemplateData{
+ return htmlTemplate.Execute(file, TemplateData{
Title: fm.Title,
Description: fm.Description,
PublicationTime: fm.PublicationTime.Format(time.RFC3339),