Include child imports in markdown component_map (#3883)

If a component in the markdown component_map contains children components, use
`_get_all_imports` to recursively enumerate them.

Fix #3880
This commit is contained in:
Masen Furer 2024-09-05 14:36:53 -07:00 committed by GitHub
parent 6308eb6665
commit cbe532cfc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,7 +170,7 @@ class Markdown(Component):
),
},
*[
component(_MOCK_ARG)._get_imports() # type: ignore
component(_MOCK_ARG)._get_all_imports() # type: ignore
for component in self.component_map.values()
],
CodeBlock.create(theme="light")._get_imports(), # type: ignore,