We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c72957 commit 0b1b032Copy full SHA for 0b1b032
src/lib/remark-plugins/links/index.js
@@ -3,7 +3,7 @@ import { resolve, sep } from 'node:path'
3
4
export default function relativeLinks(options) {
5
let extensions = ['.mdx', '.md']
6
- let rootPath = options.rootPath
+ const moduleRootPath = options.rootPath
7
const prefix = options.prefix
8
if (options.extensions) {
9
extensions = options.extensions
@@ -25,6 +25,7 @@ export default function relativeLinks(options) {
25
) {
26
// keep a copy of the original node url for comparison
27
const originalUrl = node.url
28
+ let rootPath = moduleRootPath
29
30
if (options.debug) {
31
console.log(rootPath, node.url, options)
0 commit comments