added comment
This commit is contained in:
parent
d2f3e6bb59
commit
f3040ab1b6
@ -204,9 +204,10 @@ class Markdown(Component):
|
|||||||
children = [
|
children = [
|
||||||
_CHILDREN
|
_CHILDREN
|
||||||
if tag != "codeblock"
|
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(
|
else ternary_operation(
|
||||||
ARRAY_ISARRAY.call(_CHILDREN), # type: ignore
|
ARRAY_ISARRAY.call(_CHILDREN), # type: ignore
|
||||||
_CHILDREN.to(list).join(""),
|
_CHILDREN.to(list).join("\n"),
|
||||||
_CHILDREN,
|
_CHILDREN,
|
||||||
).to(str)
|
).to(str)
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user