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:
8
vendor/github.com/gomarkdown/markdown/ast/node.go
generated
vendored
8
vendor/github.com/gomarkdown/markdown/ast/node.go
generated
vendored
@@ -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
|
||||
|
10
vendor/github.com/gomarkdown/markdown/parser/block.go
generated
vendored
10
vendor/github.com/gomarkdown/markdown/parser/block.go
generated
vendored
@@ -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?
|
||||
|
1
vendor/github.com/gomarkdown/markdown/parser/inline.go
generated
vendored
1
vendor/github.com/gomarkdown/markdown/parser/inline.go
generated
vendored
@@ -157,6 +157,7 @@ func codeSpan(p *Parser, data []byte, offset int) (int, ast.Node) {
|
||||
}
|
||||
if !IsSpace(data[j]) {
|
||||
hasCharsAfterDelimiter = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user