MCPcopy Create free account
hub / github.com/Feather-2/Burner-X / getActiveProcessor

Function getActiveProcessor

js/processing/markdown_processor.js:390–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

388 };
389
390 function getActiveProcessor() {
391 // 优先使用 AST 架构(如果已加载)
392 const ast = global.MarkdownProcessorAST;
393 if (ast && typeof ast.render === 'function') {
394 return ast;
395 }
396
397 // 其次使用 Enhanced
398 const enhanced = global.MarkdownProcessorEnhanced;
399 if (enhanced && typeof enhanced.safeMarkdown === 'function' && typeof enhanced.renderWithKatexFailback === 'function') {
400 return enhanced;
401 }
402
403 // 最后使用 Legacy
404 return legacyImpl;
405 }
406
407 function safeMarkdown(md, images) {
408 const impl = getActiveProcessor();

Callers 3

safeMarkdownFunction · 0.85
renderWithKatexFailbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected