MCPcopy Create free account
hub / github.com/anomalyco/opencode / fallback

Function fallback

packages/session-ui/src/components/markdown.tsx:65–67  ·  view source on GitHub ↗
(markdown: string)

Source from the content-addressed store, hash-verified

63}
64
65function fallback(markdown: string) {
66 return escape(markdown).replace(/\r\n?/g, "\n").replace(/\n/g, "<br>")
67}
68
69async function code(text: string, language: string | undefined, key: string, complete = false) {
70 const name = language && language in bundledLanguages ? language : "text"

Callers 4

initialResultFunction · 0.70
MarkdownFunction · 0.70
pendingBlocksFunction · 0.70
AnimatedCountListFunction · 0.70

Calls 1

escapeFunction · 0.85

Tested by

no test coverage detected