1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

Fix markdown render (#33870)

Fix #33869, some code block is moved to make it easier to test.

Added a new test
This commit is contained in:
wxiaoguang
2025-03-14 03:14:35 +08:00
committed by GitHub
parent 403775e74e
commit 8a0f7f0975
4 changed files with 22 additions and 21 deletions

View File

@@ -115,6 +115,9 @@ func (g *ASTTransformer) transformBlockquote(v *ast.Blockquote, reader text.Read
// grab these nodes and make sure we adhere to the attention blockquote structure
firstParagraph := v.FirstChild()
if firstParagraph == nil {
return ast.WalkContinue, nil
}
g.applyElementDir(firstParagraph)
attentionType, processedNodes := g.extractBlockquoteAttentionEmphasis(firstParagraph, reader)