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
parent
4c9bf95126
commit
5533902ae5
2
block.go
2
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
|
||||
|
|
Loading…
Reference in New Issue