Fix markdown URL parsing for commit ID (#30812)

This commit is contained in:
wxiaoguang authored and GitHub committed 2024-05-04 09:48:16 +08:00
1 parent 0f3e717a1a
commit c7bb3aa034
4 files changed
+116 -75

No files matched your search

+2 -1
View File
@@ -60,7 +60,8 @@ func renderCodeBlock(ctx *RenderContext, node *html.Node) (urlPosStart, urlPosSt
}
func codePreviewPatternProcessor(ctx *RenderContext, node *html.Node) {
for node != nil {
nodeStop := node.NextSibling
for node != nodeStop {
if node.Type != html.TextNode {
node = node.NextSibling
continue