-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(markdown): bump to markdown-it 14
BREAKING CHANGE: bump to markdown-it 14
- Loading branch information
Showing
5 changed files
with
104 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import emojiPlugin from 'markdown-it-emoji' | ||
import { full as emojiPlugin } from 'markdown-it-emoji' | ||
import type { Options } from 'markdown-it-emoji' | ||
|
||
export type EmojiPluginOptions = emojiPlugin.Options | ||
export type EmojiPluginOptions = Options | ||
export { emojiPlugin } |
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,12 @@ | ||
// TODO: markdown-it-emoji v3 is not typed correctly for now | ||
declare module 'markdown-it-emoji' { | ||
import type emojiPlugin from '@types/markdown-it-emoji' | ||
|
||
const bare: typeof emojiPlugin | ||
const light: typeof emojiPlugin | ||
const full: typeof emojiPlugin | ||
type Options = emojiPlugin.Options | ||
|
||
export { bare, light, full } | ||
export type { Options } | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.