Update dependencies and remove old matterclient lib (#2067)
This commit is contained in:
8
vendor/github.com/gomarkdown/markdown/parser/caption.go
generated
vendored
8
vendor/github.com/gomarkdown/markdown/parser/caption.go
generated
vendored
@@ -11,7 +11,7 @@ func (p *Parser) caption(data, caption []byte) ([]byte, string, int) {
|
||||
}
|
||||
j := len(caption)
|
||||
data = data[j:]
|
||||
end := p.linesUntilEmpty(data)
|
||||
end := LinesUntilEmpty(data)
|
||||
|
||||
data = data[:end]
|
||||
|
||||
@@ -23,8 +23,8 @@ func (p *Parser) caption(data, caption []byte) ([]byte, string, int) {
|
||||
return data, "", end + j
|
||||
}
|
||||
|
||||
// linesUntilEmpty scans lines up to the first empty line.
|
||||
func (p *Parser) linesUntilEmpty(data []byte) int {
|
||||
// LinesUntilEmpty scans lines up to the first empty line.
|
||||
func LinesUntilEmpty(data []byte) int {
|
||||
line, i := 0, 0
|
||||
|
||||
for line < len(data) {
|
||||
@@ -35,7 +35,7 @@ func (p *Parser) linesUntilEmpty(data []byte) int {
|
||||
i++
|
||||
}
|
||||
|
||||
if p.isEmpty(data[line:i]) == 0 {
|
||||
if IsEmpty(data[line:i]) == 0 {
|
||||
line = i
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user