summaryrefslogtreecommitdiffstats
path: root/markup
diff options
context:
space:
mode:
authorcuishuang <imcusg@gmail.com>2022-03-10 12:01:05 +0800
committerAnthony Fok <anthony.fok@canada.ca>2022-03-22 00:38:23 -0600
commit48c98a8d24a0f5ceb17ce4977587f660d137a1a5 (patch)
treec38e62b143227b3528194e85577332f0ae8591be /markup
parentbbd455fe79de4d882c103f4352945f60276e564e (diff)
Fix some typos
Signed-off-by: cuishuang <imcusg@gmail.com> [foka@debian.org: Resolve merge conflict and squash 2 commits] Signed-off-by: Anthony Fok <foka@debian.org>
Diffstat (limited to 'markup')
-rw-r--r--markup/converter/hooks/hooks.go2
-rw-r--r--markup/goldmark/internal/extensions/attributes/attributes.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/markup/converter/hooks/hooks.go b/markup/converter/hooks/hooks.go
index dc5da5a30..a8666bdf0 100644
--- a/markup/converter/hooks/hooks.go
+++ b/markup/converter/hooks/hooks.go
@@ -93,7 +93,7 @@ type HeadingRenderer interface {
// ElementPositionResolver provides a way to resolve the start Position
// of a markdown element in the original source document.
-// This may be both slow and aproximate, so should only be
+// This may be both slow and approximate, so should only be
// used for error logging.
type ElementPositionResolver interface {
ResolvePosition(ctx any) text.Position
diff --git a/markup/goldmark/internal/extensions/attributes/attributes.go b/markup/goldmark/internal/extensions/attributes/attributes.go
index e10e7ba79..22c717b94 100644
--- a/markup/goldmark/internal/extensions/attributes/attributes.go
+++ b/markup/goldmark/internal/extensions/attributes/attributes.go
@@ -8,7 +8,7 @@ import (
"github.com/yuin/goldmark/util"
)
-// This extenion is based on/inspired by https://github.com/mdigger/goldmark-attributes
+// This extension is based on/inspired by https://github.com/mdigger/goldmark-attributes
// MIT License
// Copyright (c) 2019 Dmitry Sedykh