summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/gomarkdown/markdown/parser
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/gomarkdown/markdown/parser')
-rw-r--r--vendor/github.com/gomarkdown/markdown/parser/block.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/gomarkdown/markdown/parser/block.go b/vendor/github.com/gomarkdown/markdown/parser/block.go
index cec667b5..95438174 100644
--- a/vendor/github.com/gomarkdown/markdown/parser/block.go
+++ b/vendor/github.com/gomarkdown/markdown/parser/block.go
@@ -1221,7 +1221,7 @@ func (p *Parser) tableRow(data []byte, columns []ast.CellAlignFlags, header bool
// skip the end-of-cell marker, possibly taking us past end of buffer
// each _extra_ | means a colspan
- for data[i] == '|' && !isBackslashEscaped(data, i) {
+ for i < len(data) && data[i] == '|' && !isBackslashEscaped(data, i) {
i++
colspan++
}