Open hyperknot opened 9 years ago
The following script work perfectly! So this bug has something to do with ASTtoJSON.
import CommonMark
import json
parser = CommonMark.DocParser()
renderer = CommonMark.HTMLRenderer()
ast = parser.parse("Hello *World*")
html = renderer.render(ast)
# json = CommonMark.ASTtoJSON(ast)
CommonMark.dumpAST(ast) # pretty print generated AST structure
Why not just deepcopy the block passed in ASTtoJSON? Is there some memory or performance issue that would prevent that bug fix?
Running CommonMark.dumpAST terminates in a AttributeError.