Fix markdown URL parsing for commit ID (#30812)
This commit is contained in:
parent
0f3e717a1a
commit
c7bb3aa034
4 changed files with 116 additions and 75 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue