This works, but it feels awkward to do, and it's not obvious to an implementer of custom renderers which reuse existing renderers.
I'm not sure yet on a solution for this that will prevent headaches for custom entry authors, but I'm putting the issue here for now so it can be explored later.
Given this Obsidian Callout custom entry:
The expected format of nested callouts is to append one additional layer of blockquote. So, a callout within a callout should look like this:
Instead, it looks like this:
In general, this is because the callout implementation is calling
renderEnties()
, which is the established example in the docs.The workaround is to update the callout renderer as follows:
This works, but it feels awkward to do, and it's not obvious to an implementer of custom renderers which reuse existing renderers.
I'm not sure yet on a solution for this that will prevent headaches for custom entry authors, but I'm putting the issue here for now so it can be explored later.