Commit 2b694a7 1 parent f74f1eb commit 2b694a7 Copy full SHA for 2b694a7
File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ function processLink(
137
137
log,
138
138
getPublicPath = getDefaultPublicPath ,
139
139
cache,
140
+ skipLinkFileCheck = false ,
140
141
} = opts ;
141
142
142
143
const currentPath = state . env . path || startPath ;
@@ -163,7 +164,7 @@ function processLink(
163
164
164
165
if ( pathname ) {
165
166
file = resolve ( path . parse ( currentPath ) . dir , pathname ) ;
166
- fileExists = isFileExists ( file ) ;
167
+ fileExists = skipLinkFileCheck || isFileExists ( file ) ;
167
168
isPageFile = PAGE_LINK_REGEXP . test ( pathname ) ;
168
169
169
170
if ( isPageFile && ! fileExists ) {
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ export interface MarkdownItPluginOpts {
89
89
vars ?: Record < string , string > ;
90
90
extractTitle ?: boolean ;
91
91
disableLiquid ?: boolean ;
92
+ skipLinkFileCheck ?: boolean ;
92
93
}
93
94
94
95
export type MarkdownItPluginCb < T extends { } = { } > = {
You can’t perform that action at this time.
0 commit comments