diff options
author | Gergely Nagy <forgejo@gergo.csillger.hu> | 2024-03-23 15:29:46 +0100 |
---|---|---|
committer | Gergely Nagy <forgejo@gergo.csillger.hu> | 2024-03-23 15:38:43 +0100 |
commit | 58d4af8fdb16fa0a456b24ce9380e5644a598c71 (patch) | |
tree | 47f7b28dfed5b490111b955ade31e97149f0275e /modules | |
parent | Refactor markdown attention render (#29833) (diff) | |
download | forgejo-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.go | 2 |
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)) |