Skip to content

Commit 178c3b2

Browse files
committed
Ensure comments are accurate
1 parent 773aab8 commit 178c3b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

reflex/components/markdown/markdown.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def _get_codeblock_fn_var(self) -> Var:
376376
Returns:
377377
The Var for pre code.
378378
"""
379-
# Get any custom code from the codeblock and code components.
379+
# Get any custom code from the code block "pre" component.
380380
custom_code_list = self._get_map_fn_custom_code_from_children(
381381
self.get_component("pre")
382382
)
@@ -387,7 +387,7 @@ def _get_codeblock_fn_var(self) -> Var:
387387
])
388388
codeblock_custom_code = "\n".join(map(str, custom_code_list))
389389

390-
# Format the code to handle inline and block code.
390+
# Format the code to handle code block with language extraction.
391391
formatted_code = f"""
392392
const {{node: childNode, className, children: components, {_PROPS_SPREAD._js_expr}}} = {_REST._js_expr}.children.props;
393393
const {_CHILDREN._js_expr} = String(Array.isArray(components) ? components.join('\\n') : components).replace(/\\n$/, '');

0 commit comments

Comments
 (0)