UNPKG

@nanocollective/nanocoder

Version:

A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter

14 lines 481 B
// Strip markdown formatting from text (for width calculations) export function stripMarkdown(text) { let result = text; // Remove inline code result = result.replace(/`([^`]+)`/g, '$1'); // Remove bold result = result.replace(/\*\*([^*]+)\*\*/g, '$1'); // Remove italic result = result.replace(/\*([^*]+)\*/g, '$1'); // Remove links result = result.replace(/\[([^\]]+)\]\([^)]+\)/g, '$1'); return result; } //# sourceMappingURL=utils.js.map