Add recursive block embeds for lists

Use case or problem

  • Given I have a list like this:

  • Parent ^parentid

    • Child
    • Child
  • When I transclude the parent, I want to be able to transclude its children as well

  • Currently, if I transclude the block, I can only see the content of the block itself (‘Parent’)

Proposed solution

  • There are already block references, so why not just add some syntax to transclude child list items as well, like !![[^parentid]]

Current workaround (optional)

  • I can achieve similar behavior with heading embeds, but it seems too rigid, since I need to restructure my notes just to be able to embed a block. Unordered lists are much cleaner and easier to edit than headings
  • Also, ^id links are much more robust that heading links, since they don’t require refactoring when the contents of the block change
3 Likes

Use:

- List item
    - List item
    - List item
^blockID

More complex references are best suited to heading references.

That doesn’t work as expected though
image
image

I don’t know if it’s acting normally because you’re embedding a list within a list. You might want to play around with it and submit (a) bug report(s).

Also note that the block ID should have a blank line after it.

- List
    - list item
^blockID

some other text