Render a widget in a widget

I want to have an automatic bottomWidget that has a heading and then another widget (TaskManager) inside of it. I have searched for similar questions, but have not found anything.

Basically I want this:

return widget.markdown([[
      ## Here are some tasks
      ${TaskManager(taskQuery)}
      ]])

But the TasksManager thing is rendered verbatim. How can I do this?

widget.markdown take a string as input and doesn't interprete ${} expressions, but widget.html should be able to do nested widgets.

Ah, yes, you are right! That solved it. Thanks :slight_smile: