-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace require() with esm import
- Loading branch information
Showing
7 changed files
with
59 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* eslint-disable @typescript-eslint/no-duplicate-imports */ | ||
|
||
declare module 'markdown-it-attrs' { | ||
import type {PluginWithOptions} from 'markdown-it'; | ||
export type AttrsOptions = { | ||
/** @default '{' */ | ||
leftDelimiter?: string; | ||
/** @default '}' */ | ||
rightDelimiter?: string; | ||
/** | ||
* empty array = all attributes are allowed | ||
* @default [] | ||
*/ | ||
allowedAttributes?: (string | RegExp)[]; | ||
}; | ||
declare const plugin: PluginWithOptions<AttrsOptions>; | ||
export = plugin; | ||
} | ||
|
||
declare module 'markdown-it-deflist' { | ||
import type {PluginSimple} from 'markdown-it'; | ||
declare const plugin: PluginSimple; | ||
export = plugin; | ||
} | ||
|
||
declare module 'markdown-it-mark' { | ||
import type {PluginSimple} from 'markdown-it'; | ||
declare const plugin: PluginSimple; | ||
export = plugin; | ||
} | ||
|
||
declare module 'markdown-it-sub' { | ||
import type {PluginSimple} from 'markdown-it'; | ||
declare const plugin: PluginSimple; | ||
export = plugin; | ||
} | ||
|
||
declare module 'markdown-it-ins' { | ||
import type {PluginSimple} from 'markdown-it'; | ||
declare const plugin: PluginSimple; | ||
export = plugin; | ||
} |