MCPcopy Create free account
hub / github.com/coder/mux / stripMarkdownComments

Function stripMarkdownComments

src/node/utils/main/instructionFiles.ts:14–16  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

12const MARKDOWN_COMMENT_REGEX = /<!--[\s\S]*?-->/g;
13
14function stripMarkdownComments(content: string): string {
15 return content.replace(MARKDOWN_COMMENT_REGEX, "").trim();
16}
17
18/**
19 * Instruction file names to search for, in priority order.

Callers 1

readSingleFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected