MCPcopy
hub / github.com/continuedev/continue / isMarkdownFile

Function isMarkdownFile

core/utils/markdownUtils.ts:27–34  ·  view source on GitHub ↗
(filepath?: string)

Source from the content-addressed store, hash-verified

25 * Determines if a file is a markdown file based on its filepath.
26 */
27export function isMarkdownFile(filepath?: string): boolean {
28 if (!filepath) {
29 return false;
30 }
31
32 const ext = filepath.split(".").pop()?.toLowerCase() || "";
33 return ["md", "markdown", "gfm"].includes(ext);
34}
35
36/**
37 * State tracker for markdown block analysis to avoid recomputing on each call.

Callers 3

hasNestedMarkdownBlocksFunction · 0.90

Calls 1

popMethod · 0.45

Tested by

no test coverage detected