added comment

This commit is contained in:
Elijah 2024-10-21 22:49:51 +00:00
parent d2f3e6bb59
commit f3040ab1b6

View File

@ -204,9 +204,10 @@ class Markdown(Component):
children = [
_CHILDREN
if tag != "codeblock"
# For codeblock, the mapping for some cases returns an array of elements. Let's join them into a string.
else ternary_operation(
ARRAY_ISARRAY.call(_CHILDREN), # type: ignore
_CHILDREN.to(list).join(""),
_CHILDREN.to(list).join("\n"),
_CHILDREN,
).to(str)
]