You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"fmt""os""github.com/russross/blackfriday/v2"
)
vardata, _=os.ReadFile("the text above")
funcmain() {
p:=blackfriday.New(blackfriday.WithExtensions(blackfriday.FencedCode))
rootList:=p.Parse([]byte(data)).FirstChildfmt.Printf("%s", rootList.FirstChild.Next.Next.Next)
}
Output: (*blackfriday.Node)(nil)
For some reason the list is parsed with the first 3 items as children, and the other 2 as children of a list under the - [hello](http://) item. I assume something's wrong with the way code blocks are parsed in a list?
Edit: issue is caused when language is specified.
The text was updated successfully, but these errors were encountered:
The text:
The code:
Output:
(*blackfriday.Node)(nil)
For some reason the list is parsed with the first 3 items as children, and the other 2 as children of a list under the
- [hello](http://)
item. I assume something's wrong with the way code blocks are parsed in a list?Edit: issue is caused when language is specified.
The text was updated successfully, but these errors were encountered: