Closed jorge-moreira closed 4 months ago
Thanks for the repro, indeed, it's not working at all 😅
The issue is in ProcessInlines.ProcessInlines
that maintain the stack of the blocks being processed, as we are changing from an inline expansion the parent block, the loop doesn't pick-up the new parent, and as we removed all children from the QuoteBlock (replaced by an AlertBlock), then it exits the loop (and doesn't process the AlertBlock because it is not in the stack of the element being processed by the loop)
Gonna have to think about how to proceed. e.g It might not be a good idea to change the structure of blocks while parsing inlines, so I might have to remove AlertBlock and add attributes to the QuoteBlock.
Temporary fix 6549d3b726b32146f3025204abb3bfeec53e3c1c until this is revisited. The fix is not ideal, so for now I kept the code internal.
Temporary fix 6549d3b until this is revisited. The fix is not ideal, so for now I kept the code internal.
I'll also take a look into it. Thank you once again 🙇
Hi,
I was trying the new version and it seems that the paragraphs within the
AlertBlock
are not being rendered.How to reproduce
Markdown example
Expected:
HTML rendered result
When debugging, I noticed that the paragraph block, when was being rendered, the ContainerInline is null, and that way, the paragraph is not rendered:![image](https://github.com/xoofx/markdig/assets/24962230/d2482c58-81a1-48a9-8987-4de86dcff356)