module.exports = async (path) => { path = await path pkg = path.split('/')[0] mod = path.split('/')[1] let dots = path.split('.') let mod = dots.filter(s => s[0].toUpperCase() === s[0]).join('.') let last = dots[dots.length - 1] let val = last[0].toLowerCase() === last[0] ? last : '' val = val ? `#v:${val}` : '' const url = `https://pursuit.purescript.org/packages/purescript-${pkg}/docs/${mod}${val}` return `[${path}](${url})` }