markup/goldmark: Improve attributes vs options

Fixes #9571
This commit is contained in:
Bjørn Erik Pedersen
2022-02-26 17:24:10 +01:00
parent 928a896962
commit 579ff9b652
6 changed files with 41 additions and 19 deletions

View File

@@ -90,11 +90,11 @@ type HeadingRenderer interface {
identity.Provider
}
// ElementPositionRevolver provides a way to resolve the start Position
// 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
// used for error logging.
type ElementPositionRevolver interface {
type ElementPositionResolver interface {
ResolvePosition(ctx interface{}) text.Position
}