Skip to content

Commit

Permalink
fix spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKaufmann committed Dec 15, 2024
1 parent 891c5c1 commit e5557f6
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion plugin/commonmark/commonmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func TestOptionFunc(t *testing.T) {
}
}

func TestOptionFunc_ValdationError(t *testing.T) {
func TestOptionFunc_ValidationError(t *testing.T) {
testCases := []struct {
desc string
options []commonmark.OptionFunc
Expand Down
2 changes: 1 addition & 1 deletion plugin/commonmark/render_break.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"golang.org/x/net/html"
)

func (c *commonmark) renderBreak(ctx converter.Context, w converter.Writer, n *html.Node) converter.RenderStatus {
func (c *commonmark) renderBreak(_ converter.Context, w converter.Writer, _ *html.Node) converter.RenderStatus {
w.Write(marker.BytesMarkerLineBreak)
w.Write(marker.BytesMarkerLineBreak)
return converter.RenderSuccess
Expand Down
4 changes: 2 additions & 2 deletions plugin/commonmark/render_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"golang.org/x/net/html"
)

func (c *commonmark) renderInlineCode(ctx converter.Context, w converter.Writer, n *html.Node) converter.RenderStatus {
func (c *commonmark) renderInlineCode(_ converter.Context, w converter.Writer, n *html.Node) converter.RenderStatus {
// TODO: configure delimeter in options?
fenceChar := '`'

Expand Down Expand Up @@ -64,7 +64,7 @@ func (c *commonmark) renderInlineCode(ctx converter.Context, w converter.Writer,

return converter.RenderSuccess
}
func (c *commonmark) renderBlockCode(ctx converter.Context, w converter.Writer, n *html.Node) converter.RenderStatus {
func (c *commonmark) renderBlockCode(_ converter.Context, w converter.Writer, n *html.Node) converter.RenderStatus {
code, infoString := getCodeWithoutTags(n)

if bytes.HasSuffix(code, []byte("\n")) {
Expand Down
4 changes: 2 additions & 2 deletions plugin/commonmark/render_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"golang.org/x/net/html"
)

func (c *commonmark) renderComment(ctx converter.Context, w converter.Writer, n *html.Node) converter.RenderStatus {
func (c *commonmark) renderComment(_ converter.Context, w converter.Writer, n *html.Node) converter.RenderStatus {

if n.Data == domutils.ListEndCommentData {
// We definetely want to render the list end comments
// We definitely want to render the list end comments
// that were just added
w.WriteRune('\n')
w.WriteRune('\n')
Expand Down
2 changes: 1 addition & 1 deletion plugin/commonmark/render_divider.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"golang.org/x/net/html"
)

func (c *commonmark) renderDivider(ctx converter.Context, w converter.Writer, n *html.Node) converter.RenderStatus {
func (c *commonmark) renderDivider(_ converter.Context, w converter.Writer, _ *html.Node) converter.RenderStatus {

w.WriteString("\n\n")
w.WriteString(c.HorizontalRule)
Expand Down
2 changes: 1 addition & 1 deletion plugin/commonmark/render_heading.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func escapePoundSignAtEnd(s []byte) []byte {
// -3 maybe \

if s[len(s)-1] != '#' {
// We dont have a # at the end,
// We don't have a # at the end,
// so there is no work to do...
return s
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/commonmark/render_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (c *commonmark) renderLinkInlined(w converter.Writer, l *link) converter.Re
w.WriteRune('(')
w.WriteString(l.href)
if l.title != "" {
// The destination and title must be seperated by a space
// The destination and title must be separated by a space
w.WriteRune(' ')
w.Write(textutils.SurroundByQuotes([]byte(l.title)))
}
Expand Down

0 comments on commit e5557f6

Please sign in to comment.