File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ export function inlineContentPlugin(client: Client) {
6868 inPage : true ,
6969 openRef : parseToRef ( transclusion . url ) ,
7070 callback : async ( ) => {
71- // Resolve local URLs
72- if ( isLocalURL ( transclusion . url ) ) {
71+ // Resolve local URLs (only for markdown links, wikilinks are absolute)
72+ if ( isLocalURL ( transclusion . url ) && transclusion . linktype !== "wikilink" ) {
7373 transclusion . url = resolveMarkdownLink (
7474 client . currentName ( ) ,
7575 decodeURI ( transclusion . url ) ,
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ export async function expandMarkdown(
6565 return n ;
6666 }
6767
68- // Resolve local URLs
69- if ( isLocalURL ( transclusion . url ) ) {
68+ // Resolve local URLs (only for markdown links, wikilinks are absolute)
69+ if ( isLocalURL ( transclusion . url ) && transclusion . linktype !== "wikilink" ) {
7070 transclusion . url = resolveMarkdownLink (
7171 pageName ,
7272 decodeURI ( transclusion . url ) ,
You can’t perform that action at this time.
0 commit comments