Skip to content

Commit

Permalink
Merge pull request #31 from nicholaswilde/fix-markdownlint-issues
Browse files Browse the repository at this point in the history
fix the following markdownlint issues
  • Loading branch information
nicholaswilde authored May 10, 2022
2 parents 155985f + 0378212 commit a253fe9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/document/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func getImageTemplate() string {

templateBuilder.WriteString(`{{ define "cook.imageSection" }}`)
templateBuilder.WriteString("{{ if .Metadata.ImageName }}")
templateBuilder.WriteString(`![](../assets/images/{{ lower .Metadata.ImageName | replace " " "-" }})`)
templateBuilder.WriteString(`![{{ .Metadata.title }}](../assets/images/{{ lower .Metadata.ImageName | replace " " "-" }})`)
templateBuilder.WriteString("{{ end }}")
templateBuilder.WriteString("{{ end }}")

Expand Down Expand Up @@ -82,7 +82,7 @@ func getIngredientsTemplate() string {
templateBuilder.WriteString("{{ range .Steps }}")
templateBuilder.WriteString("{{- range .Ingredients }}")
templateBuilder.WriteString("\n")
templateBuilder.WriteString("- {{ if .Amount.Quantity }}{{ round .Amount.Quantity 2 }} {{ .Amount.Unit }}{{ else }}some{{ end }}")
templateBuilder.WriteString("- {{ if .Amount.Quantity }}{{ round .Amount.Quantity 2 }}{{ if .Amount.Unit }} {{ .Amount.Unit }}{{ end }}{{ else }}some{{ end }}")
templateBuilder.WriteString(" {{ .Name }}")
templateBuilder.WriteString("{{- end }}")
templateBuilder.WriteString("{{- end }}")
Expand Down Expand Up @@ -194,13 +194,13 @@ func getSourceTemplate() string {
templateBuilder.WriteString("{{ end }}")

templateBuilder.WriteString(`{{ define "cook.source" }}`)
templateBuilder.WriteString("- {{ .Metadata.source }}")
templateBuilder.WriteString("- <{{ .Metadata.source }}>")
templateBuilder.WriteString("{{ end }}")

templateBuilder.WriteString(`{{ define "cook.sourceSection" }}`)
templateBuilder.WriteString("{{ if .Metadata.source }}")
templateBuilder.WriteString(`{{ template "cook.sourceHeader" . }}`)
templateBuilder.WriteString("\n")
templateBuilder.WriteString("\n\n")
templateBuilder.WriteString(`{{ template "cook.source" . }}`)
templateBuilder.WriteString("{{ end }}")
templateBuilder.WriteString("{{ end }}")
Expand Down

0 comments on commit a253fe9

Please sign in to comment.