Skip to content

Commit

Permalink
Update packages/saber/lib/markdown/link-plugin.js
Browse files Browse the repository at this point in the history
Co-Authored-By: EGOIST <[email protected]>
  • Loading branch information
kidonng and egoist authored May 25, 2019
1 parent 457c9c9 commit 15a8258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/saber/lib/markdown/link-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = function(md) {
path.dirname(env.filePath),
matched[1]
)
if (absolutePath.includes(env.pagesDir)) {
if (absolutePath.startsWith(env.pagesDir)) {
link[0] = ':to'
link[1] = `$saber.getPageLink("${matched[1]}", "${matched[2] ||
''}")`
Expand Down

0 comments on commit 15a8258

Please sign in to comment.