diff options
author | Christian Oliff <[email protected]> | 2024-03-16 01:25:52 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-15 17:25:52 +0100 |
commit | 78178d0c2a10e7793a41f8f66b3a4a6e4f70ef7e (patch) | |
tree | 21d0d310785676b914035e5930e987540c494d8d /markup | |
parent | 68d92ef9ddbb63340d71af0cb30e6fb7c4912c65 (diff) | |
download | hugo-78178d0c2a10e7793a41f8f66b3a4a6e4f70ef7e.tar.gz hugo-78178d0c2a10e7793a41f8f66b3a4a6e4f70ef7e.zip |
all: Typo fixes
Diffstat (limited to 'markup')
-rw-r--r-- | markup/goldmark/codeblocks/render.go | 2 | ||||
-rw-r--r-- | markup/internal/attributes/attributes.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/markup/goldmark/codeblocks/render.go b/markup/goldmark/codeblocks/render.go index 5f479bf23..67053640d 100644 --- a/markup/goldmark/codeblocks/render.go +++ b/markup/goldmark/codeblocks/render.go @@ -147,7 +147,7 @@ type codeBlockContext struct { ordinal int // This is only used in error situations and is expensive to create, - // to deleay creation until needed. + // to delay creation until needed. pos htext.Position posInit sync.Once createPos func() htext.Position diff --git a/markup/internal/attributes/attributes.go b/markup/internal/attributes/attributes.go index 4e81afe04..15bed7039 100644 --- a/markup/internal/attributes/attributes.go +++ b/markup/internal/attributes/attributes.go @@ -95,7 +95,7 @@ func New(astAttributes []ast.Attribute, ownerType AttributesOwnerType) *Attribut case []byte: // Note that we don't do any HTML escaping here. // We used to do that, but that changed in #9558. - // Noww it's up to the templates to decide. + // Now it's up to the templates to decide. vv = string(vvv) default: panic(fmt.Sprintf("not implemented: %T", vvv)) @@ -175,7 +175,7 @@ func (a *AttributesHolder) OptionsSlice() []Attribute { // RenderASTAttributes writes the AST attributes to the given as attributes to an HTML element. // This is used by the default HTML renderers, e.g. for headings etc. where no hook template could be found. -// This performs HTML esacaping of string attributes. +// This performs HTML escaping of string attributes. func RenderASTAttributes(w hugio.FlexiWriter, attributes ...ast.Attribute) { for _, attr := range attributes { |