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 <[email protected]>
  • Loading branch information
JounQin and brc-dd authored 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
Original file line number Diff line number Diff line change
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.