ListBlocks Don't Support Nesting As a Child Node #1006
Unanswered
secondmanveran
asked this question in
Q&A
Replies: 1 comment
-
Double-check whether the resulting HTML looks correct (in case this is a CSS issue). If you confirm that the list is not nested, that works suggest the issue is with how it's being parsed. Double-check whether your custom container parser is accidentally consuming the leading whitespace that the list parser uses to determine if a line belongs to the same list block or a new nested one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building out a Container extension for making attractive state based containers, and CodeGroups with tabs for different language variations.
All runs well until I recently discovered that nested lists get flattened inside another node.
So I have a list inside a container:
but when rendered I get this:
If I move the list out of the container, it renders as expected:
I considered using the event system via DocumentParsedEvent to extract the list nodes to re-render them, but the problem is that the block is already parsed as flattened. I thought of using the DocumentPreParsedEvent, but without the nodes to iterate I haven't found a way to get the raw markdown for just the list inside the container.
Any pointers would be great.
Beta Was this translation helpful? Give feedback.
All reactions