-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,10 @@ | |
"typescript": "5.7.2", | ||
"zod": "^3.24.1" | ||
}, | ||
"packageManager": "[email protected]+sha256.9e534e70afef06374f6126b44bda5760947135ce16a30aef1010e965fb7e3e3e" | ||
"packageManager": "[email protected]+sha256.9e534e70afef06374f6126b44bda5760947135ce16a30aef1010e965fb7e3e3e", | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@portaljs/remark-wiki-link": "patches/@portaljs__remark-wiki-link.patch" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
diff --git a/dist/index.cjs b/dist/index.cjs | ||
index 80d21bbf699310538dbb0a5c1b063b0716706fc4..53f8dab5fc21920fe90891260c672902f91573c8 100644 | ||
--- a/dist/index.cjs | ||
+++ b/dist/index.cjs | ||
@@ -366,11 +366,12 @@ function fromMarkdown() { | ||
current.data.alias = alias; | ||
} | ||
function exitWikiLink(token) { | ||
- var wikiLink = this.exit(token); | ||
+ var wikiLink = top(this.stack); | ||
var _wikiLink$data = wikiLink.data, | ||
isEmbed = _wikiLink$data.isEmbed, | ||
target = _wikiLink$data.target, | ||
alias = _wikiLink$data.alias; | ||
+ this.exit(token); | ||
// eslint-disable-next-line no-useless-escape | ||
var wikiLinkWithHeadingPattern = /^((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)(#(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/; | ||
var _target$match = target.match(wikiLinkWithHeadingPattern), | ||
diff --git a/dist/index.js b/dist/index.js | ||
index 8cee892269bb0768d9be4f3f6407a59e3b56af40..680381cfac8489242cafb577f2044507004398fb 100644 | ||
--- a/dist/index.js | ||
+++ b/dist/index.js | ||
@@ -357,11 +357,12 @@ function fromMarkdown() { | ||
current.data.alias = alias; | ||
} | ||
function exitWikiLink(token) { | ||
- var wikiLink = this.exit(token); | ||
+ var wikiLink = top(this.stack); | ||
var _wikiLink$data = wikiLink.data, | ||
isEmbed = _wikiLink$data.isEmbed, | ||
target = _wikiLink$data.target, | ||
alias = _wikiLink$data.alias; | ||
+ this.exit(token); | ||
// eslint-disable-next-line no-useless-escape | ||
var wikiLinkWithHeadingPattern = /^((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)(#(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/; | ||
var _target$match = target.match(wikiLinkWithHeadingPattern), |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters