-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGES: markdown-it-async is used instead of markdown-it --------- Co-authored-by: Divyansh Singh <[email protected]>
- Loading branch information
Showing
22 changed files
with
193 additions
and
216 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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -101,7 +101,6 @@ | |
"@shikijs/core": "^2.1.0", | ||
"@shikijs/transformers": "^2.1.0", | ||
"@shikijs/types": "^2.1.0", | ||
"@types/markdown-it": "^14.1.2", | ||
"@vitejs/plugin-vue": "^5.2.1", | ||
"@vue/devtools-api": "^7.7.0", | ||
"@vue/shared": "^3.5.13", | ||
|
@@ -135,6 +134,7 @@ | |
"@types/fs-extra": "^11.0.4", | ||
"@types/lodash.template": "^4.5.3", | ||
"@types/mark.js": "^8.11.12", | ||
"@types/markdown-it": "^14.1.2", | ||
"@types/markdown-it-attrs": "^4.1.3", | ||
"@types/markdown-it-container": "^2.0.10", | ||
"@types/markdown-it-emoji": "^3.0.1", | ||
|
@@ -157,6 +157,7 @@ | |
"lru-cache": "^11.0.2", | ||
"markdown-it": "^14.1.0", | ||
"markdown-it-anchor": "^9.2.0", | ||
"markdown-it-async": "^2.0.0", | ||
"markdown-it-attrs": "^4.3.1", | ||
"markdown-it-container": "^4.0.0", | ||
"markdown-it-emoji": "^3.0.0", | ||
|
@@ -183,7 +184,6 @@ | |
"simple-git-hooks": "^2.11.1", | ||
"sirv": "^3.0.0", | ||
"sitemap": "^8.0.0", | ||
"synckit": "^0.9.2", | ||
"tinyglobby": "^0.2.10", | ||
"typescript": "^5.7.3", | ||
"vitest": "^3.0.4", | ||
|
@@ -215,7 +215,8 @@ | |
"ora>string-width": "^5" | ||
}, | ||
"patchedDependencies": { | ||
"@types/[email protected]": "patches/@[email protected]" | ||
"@types/[email protected]": "patches/@[email protected]", | ||
"[email protected]": "patches/[email protected]" | ||
} | ||
} | ||
} |
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,17 @@ | ||
diff --git a/types/index.d.ts b/types/index.d.ts | ||
index 40c25c0be1add8b0fc2c51489c25a423dbc49d2c..807bc1b0e434d660c6a298b1dee1c87935bfac86 100644 | ||
--- a/types/index.d.ts | ||
+++ b/types/index.d.ts | ||
@@ -1,10 +1,8 @@ | ||
import MarkdownIt from 'markdown-it'; | ||
-import { default as MarkdownItToken } from 'markdown-it/lib/token.mjs'; | ||
-import { default as MarkdownItState} from 'markdown-it/lib/rules_core/state_core.mjs'; | ||
+import { default as Token } from 'markdown-it/lib/token.mjs'; | ||
+import { default as State } from 'markdown-it/lib/rules_core/state_core.mjs'; | ||
|
||
declare namespace anchor { | ||
- export type Token = MarkdownItToken | ||
- export type State = MarkdownItState | ||
export type RenderHref = (slug: string, state: State) => string; | ||
export type RenderAttrs = (slug: string, state: State) => Record<string, string | number>; | ||
|
Oops, something went wrong.