From 4fd0a7672777f0ed15692ae2ba47838208537558 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 27 Nov 2022 00:42:16 +0100 Subject: Update dependencies (#1929) --- vendor/github.com/gomarkdown/markdown/parser/block.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'vendor/github.com/gomarkdown/markdown/parser/block.go') diff --git a/vendor/github.com/gomarkdown/markdown/parser/block.go b/vendor/github.com/gomarkdown/markdown/parser/block.go index eda9be7a..490871c7 100644 --- a/vendor/github.com/gomarkdown/markdown/parser/block.go +++ b/vendor/github.com/gomarkdown/markdown/parser/block.go @@ -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? -- cgit v1.2.3