Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Acode-Foundation/Acode
/ isMarkdownPath
Function
isMarkdownPath
src/pages/markdownPreview/renderer.js:55–57 ·
view source on GitHub ↗
(target = "")
Source
from the content-addressed store, hash-verified
53
}
54
55
export
function
isMarkdownPath(target =
""
) {
56
return
/\.md(?:[#?].*)?$/i.test(String(target).trim());
57
}
58
59
export
function
getMarkdownBaseUri(file) {
60
if
(!file)
return
""
;
Callers
1
onContentClick
Function · 0.90
Calls
1
String
Interface · 0.85
Tested by
no test coverage detected