rolandshoemaker / CommonMark-py

Depreciated in favor of rtfd/CommonMark-py
Other
125 stars 12 forks source link

Fix issues #14 and #16 using deepcopy #20

Open jvtrudel opened 9 years ago

jvtrudel commented 9 years ago

As mentioned in the comment of function ASTtoJSON, it affected the integrity of the bock passed in the function call. Deepcopy create a new object that can be used internally.

The code modification proposed fix the issues #14 and #16.