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>
This commit is contained in:
parent
ec2201a3da
commit
58d4af8fdb
|
@ -49,7 +49,7 @@ func (g *GitHubLegacyCalloutTransformer) Transform(node *ast.Document, reader te
|
||||||
calloutNode.SetAttributeString("class", []byte("attention-"+calloutType))
|
calloutNode.SetAttributeString("class", []byte("attention-"+calloutType))
|
||||||
|
|
||||||
// color the blockquote
|
// 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
|
// Prepend callout icon before the callout node itself
|
||||||
firstParagraph.InsertBefore(firstParagraph, calloutNode, NewAttention(calloutType))
|
firstParagraph.InsertBefore(firstParagraph, calloutNode, NewAttention(calloutType))
|
||||||
|
|
Loading…
Reference in a new issue