Skip to content

Commit

Permalink
fix(build): show workaround on encountering dead links (#822) (#868)
Browse files Browse the repository at this point in the history
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
JounQin and brc-dd committed Jun 27, 2022
1 parent e33955e commit 29d44e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/node/markdownToVue.ts
Expand Up @@ -97,7 +97,11 @@ export async function createMarkdownToVueRenderFn(
const recordDeadLink = (url: string) => {
console.warn(
c.yellow(
`\n(!) Found dead link ${c.cyan(url)} in file ${c.white(c.dim(file))}`
`\n(!) Found dead link ${c.cyan(url)} in file ${c.white(
c.dim(file)
)}\nIf it is intended, you can use:\n ${c.cyan(
`<a href="${url}" target="_blank" rel="noopener noreferrer">${url}</a>`
)}`
)
)
deadLinks.push(url)
Expand Down

0 comments on commit 29d44e7

Please sign in to comment.