(file)
| 57 | } |
| 58 | |
| 59 | export function getMarkdownBaseUri(file) { |
| 60 | if (!file) return ""; |
| 61 | if (file.uri) return file.uri; |
| 62 | if (file.location && file.filename) { |
| 63 | return Url.join(file.location, file.filename); |
| 64 | } |
| 65 | return file.location || ""; |
| 66 | } |
| 67 | |
| 68 | export function resolveMarkdownTarget(target = "", baseUri = "") { |
| 69 | if (!target || target.startsWith("#") || isExternalLink(target)) { |
no outgoing calls
no test coverage detected