From afd63bf7d56194a6aa5d32483151d71fa0b84f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 26 Feb 2022 10:32:14 +0100 Subject: [PATCH] markup/goldmark: Rename extension struct --- markup/goldmark/codeblocks/render.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/markup/goldmark/codeblocks/render.go b/markup/goldmark/codeblocks/render.go index 59d142e23d0..b598763d360 100644 --- a/markup/goldmark/codeblocks/render.go +++ b/markup/goldmark/codeblocks/render.go @@ -29,15 +29,15 @@ import ( ) type ( - diagrams struct{} - htmlRenderer struct{} + codeBlocksExtension struct{} + htmlRenderer struct{} ) func New() goldmark.Extender { - return &diagrams{} + return &codeBlocksExtension{} } -func (e *diagrams) Extend(m goldmark.Markdown) { +func (e *codeBlocksExtension) Extend(m goldmark.Markdown) { m.Parser().AddOptions( parser.WithASTTransformers( util.Prioritized(&Transformer{}, 100),