Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/wandb/openui
/ stripCodeblocks
Function
stripCodeblocks
frontend/src/components/CodeViewer.tsx:71–73 ·
view source on GitHub ↗
(code: string)
Source
from the content-addressed store, hash-verified
69
}
70
71
function stripCodeblocks(code: string) {
72
return code.replaceAll(/```(.*)\n?/g,
''
)
73
}
74
75
export default function CodeViewer({ id, code }: ViewerProps) {
76
const item = useAtomValue(historyAtomFamily({ id }))
Callers
1
CodeViewer
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected