We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39460fc commit ca9be8bCopy full SHA for ca9be8b
utils/markdown.ts
@@ -20,6 +20,7 @@ export function resolveMarkdownRelativeLinks(
20
* RegExp is used to avoid replacing texts in markdown links and targets only `href` and `src` attributes
21
* @example [link](./image.png) => [link](https://cdn.com/image.png)
22
* @example [./src/file.ts](./src/file.ts) => [./src/file.ts](https://cdn.com/src/file.ts)
23
+ * @example ./src/file.ts => https://cdn.com/src/file.ts
24
*/
25
const searchRegExp = new RegExp(`(?<before>[^[])(?<url>${path})`, "g") // [^[] matches any character except [
26
return match.replace(searchRegExp, (_, before, url) => {
0 commit comments