mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Block.Parent is sometimes null for child blocks #387
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yufeih on GitHub (Aug 4, 2020).
This method changes the
childrenlist but it does not change theParentproperty, causing some blocks to havenullparents even though they are not root.We currently use a hack to detect such cases. Markdig could fix this problem and ensure
.Parenthas the correct value for all markdown objects.