MCPcopy Create free account
hub / github.com/Noumena-Network/code / configureMarked

Function configureMarked

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

Source from the content-addressed store, hash-verified

407}
408
409export function configureMarked(): void {
410 if (markedConfigured) return
411 markedConfigured = true
412
413 // Disable strikethrough parsing - the model often uses ~ for "approximate"
414 // (e.g., ~100) and rarely intends actual strikethrough formatting
415 marked.use({
416 tokenizer: {
417 del() {
418 return undefined
419 },
420 },
421 })
422}
423
424export function applyMarkdown(
425 content: string,

Callers 4

MarkdownBodyFunction · 0.85
StreamingMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected