From fa6bebc584fa35771413d472b361869539b992c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Mon, 19 Jun 2023 15:29:00 +0200 Subject: [PATCH] Fix spelling errors --- extension/footnote.go | 4 ++-- extension/typographer.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extension/footnote.go b/extension/footnote.go index 09b6fa8..87c017e 100644 --- a/extension/footnote.go +++ b/extension/footnote.go @@ -272,9 +272,9 @@ func (a *footnoteASTTransformer) Transform(node *gast.Document, reader text.Read // FootnoteConfig holds configuration values for the footnote extension. // // Link* and Backlink* configurations have some variables: -// Occurrances of “^^” in the string will be replaced by the +// Occurrences of “^^” in the string will be replaced by the // corresponding footnote number in the HTML output. -// Occurrances of “%%” will be replaced by a number for the +// Occurrences of “%%” will be replaced by a number for the // reference (footnotes can have multiple references). type FootnoteConfig struct { html.Config diff --git a/extension/typographer.go b/extension/typographer.go index f56c06f..d9d1f4d 100644 --- a/extension/typographer.go +++ b/extension/typographer.go @@ -266,7 +266,7 @@ func (s *typographerParser) Parse(parent gast.Node, block text.Reader, pc parser return node } if s.Substitutions[RightSingleQuote] != nil { - // plural possesives and abbreviations: Smiths', doin' + // plural possessives and abbreviations: Smiths', doin' if len(line) > 1 && unicode.IsSpace(util.ToRune(line, 0)) || unicode.IsPunct(util.ToRune(line, 0)) && (len(line) > 2 && !unicode.IsDigit(util.ToRune(line, 1))) { node := gast.NewString(s.Substitutions[RightSingleQuote]) node.SetCode(true)