MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / configureMarked

Function configureMarked

source code/utils/markdown.ts:23–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 3

MarkdownBodyFunction · 0.85
StreamingMarkdownFunction · 0.85
applyMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected