From 5533902ae54dbc62dc0520779fe8dc82d9cc8d87 Mon Sep 17 00:00:00 2001 From: Patricio Whittingslow Date: Thu, 1 Sep 2022 21:22:51 -0300 Subject: [PATCH] bugfix: Resolve #701 `isFenceLine` was being called within `listItem` for finding code blocks. It was unable to detect code blocks with an info string since a nil string pointer was being passed in. Now the pointer is not nil so info-string code blocks are correctly parsed within lists. --- block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block.go b/block.go index dcd61e6..76ab690 100644 --- a/block.go +++ b/block.go @@ -1296,7 +1296,7 @@ gatherlines: if p.extensions&FencedCode != 0 { // determine if in or out of codeblock // if in codeblock, ignore normal list processing - _, marker := isFenceLine(chunk, nil, codeBlockMarker) + _, marker := isFenceLine(chunk, new(string), codeBlockMarker) if marker != "" { if codeBlockMarker == "" { // start of codeblock