MCPcopy
hub / github.com/codeaashu/claude-code / configureMarked

Function configureMarked

src/utils/markdown.ts:21–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19let markedConfigured = false
20
21export function configureMarked(): void {
22 if (markedConfigured) return
23 markedConfigured = true
24
25 // Disable strikethrough parsing - the model often uses ~ for "approximate"
26 // (e.g., ~100) and rarely intends actual strikethrough formatting
27 marked.use({
28 tokenizer: {
29 del() {
30 return undefined
31 },
32 },
33 })
34}
35
36export function applyMarkdown(
37 content: string,

Callers 3

MarkdownBodyFunction · 0.85
StreamingMarkdownFunction · 0.85
applyMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected