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.
pull/702/head
Patricio Whittingslow 2022-09-01 21:22:51 -03:00 committed by GitHub
parent 4c9bf95126
commit 5533902ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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