We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9823fd commit 88b61fcCopy full SHA for 88b61fc
1 file changed
openkb/agent/_markdown.py
@@ -53,7 +53,8 @@ def _render_block(node: Any) -> RenderableType | None:
53
if t == "paragraph":
54
return _render_inline_container(node)
55
if t == "fence":
56
- lang = (node.info or "").strip().split()[0] if node.info else ""
+ info_parts = (node.info or "").strip().split()
57
+ lang = info_parts[0] if info_parts else ""
58
return Syntax(
59
node.content.rstrip("\n"),
60
lang or "text",
0 commit comments