summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorGergely Nagy <forgejo@gergo.csillger.hu>2024-03-23 15:29:46 +0100
committerGergely Nagy <forgejo@gergo.csillger.hu>2024-03-23 15:38:43 +0100
commit58d4af8fdb16fa0a456b24ce9380e5644a598c71 (patch)
tree47f7b28dfed5b490111b955ade31e97149f0275e /modules
parentRefactor markdown attention render (#29833) (diff)
downloadforgejo-58d4af8fdb16fa0a456b24ce9380e5644a598c71.tar.xz
forgejo-58d4af8fdb16fa0a456b24ce9380e5644a598c71.zip
Refactor the GitHub Legacy callout renderer too
Following up on the previous commit, change the GitHub Legacy callout renderer to render the same as the refactored modern renderer. Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
Diffstat (limited to 'modules')
-rw-r--r--modules/markup/markdown/callout/github_legacy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/markdown/callout/github_legacy.go b/modules/markup/markdown/callout/github_legacy.go
index add6b0a847..080cbe625c 100644
--- a/modules/markup/markdown/callout/github_legacy.go
+++ b/modules/markup/markdown/callout/github_legacy.go
@@ -49,7 +49,7 @@ func (g *GitHubLegacyCalloutTransformer) Transform(node *ast.Document, reader te
calloutNode.SetAttributeString("class", []byte("attention-"+calloutType))
// color the blockquote
- v.SetAttributeString("class", []byte("gt-py-3 attention attention-"+calloutType))
+ v.SetAttributeString("class", []byte("attention-header attention-"+calloutType))
// Prepend callout icon before the callout node itself
firstParagraph.InsertBefore(firstParagraph, calloutNode, NewAttention(calloutType))