Skip to content

Commit 7e7a161

Browse files
committed
rename function
1 parent 26064e5 commit 7e7a161

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/markup/markdown/markdown.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ func (l *limitWriter) CloseWithError(err error) error {
7373
return l.w.CloseWithError(err)
7474
}
7575

76-
// NewGiteaParseContext creates a parser.Context with the gitea context set
77-
func NewGiteaParseContext(ctx *markup.RenderContext) parser.Context {
76+
// newParserContext creates a parser.Context with the render context set
77+
func newParserContext(ctx *markup.RenderContext) parser.Context {
7878
pc := parser.NewContext(parser.WithIDs(newPrefixedIDs()))
7979
pc.Set(urlPrefixKey, ctx.URLPrefix)
8080
pc.Set(isWikiKey, ctx.IsWiki)
@@ -185,7 +185,7 @@ func actualRender(ctx *markup.RenderContext, input io.Reader, output io.Writer)
185185
}()
186186

187187
// FIXME: Don't read all to memory, but goldmark doesn't support
188-
pc := NewGiteaParseContext(ctx)
188+
pc := newParserContext(ctx)
189189
buf, err := ioutil.ReadAll(input)
190190
if err != nil {
191191
log.Error("Unable to ReadAll: %v", err)

0 commit comments

Comments
 (0)