4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-09-18 06:02:30 +00:00

Update dependencies (#1929)

This commit is contained in:
Wim
2022-11-27 00:42:16 +01:00
committed by GitHub
parent 6da9d567dc
commit 4fd0a76727
1126 changed files with 1057766 additions and 1385139 deletions

View File

@@ -157,9 +157,13 @@ func (l *Leaf) GetChildren() []Node {
return nil
}
// SetChildren will panic becuase Leaf cannot have children
// SetChildren will panic if trying to set non-empty children
// because Leaf cannot have children
func (l *Leaf) SetChildren(newChildren []Node) {
panic("leaf node cannot have children")
if len(newChildren) != 0 {
panic("leaf node cannot have children")
}
}
// Document represents markdown document node, a root of ast

View File

@@ -1419,6 +1419,16 @@ gatherlines:
chunk := data[line+indentIndex : i]
// If there is a fence line (marking starting of a code block)
// without indent do not process it as part of the list.
if p.extensions&FencedCode != 0 {
fenceLineEnd, _ := isFenceLine(chunk, nil, "")
if fenceLineEnd > 0 && indent == 0 {
*flags |= ast.ListItemEndOfList
break gatherlines
}
}
// evaluate how this line fits in
switch {
// is this a nested list item?

View File

@@ -157,6 +157,7 @@ func codeSpan(p *Parser, data []byte, offset int) (int, ast.Node) {
}
if !IsSpace(data[j]) {
hasCharsAfterDelimiter = true
break
}
}