Skip to content

Commit

Permalink
fix(remark-docz): fix alias in the src of a mdx's image #897
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jul 11, 2019
1 parent 1087539 commit 058732d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/remark-docz/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const createImgSrc = (src: string) => {
}

let { pathname } = parsed as { pathname: string }
if (!/^\.[./]+/.test(pathname)) {
if (!/^(?:\.[./]+|@)/.test(pathname)) {
pathname = `./${pathname}`
}
return t.jsxExpressionContainer(
Expand Down

0 comments on commit 058732d

Please sign in to comment.