-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from 4very/main
- Loading branch information
Showing
7 changed files
with
1,109 additions
and
788 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
declare module "anchor-markdown-header" { | ||
/** | ||
* @param header {String} The header to be anchored. | ||
* @param mode {String} The anchor mode (github.com|nodejs.org|bitbucket.org|ghost.org|gitlab.com). | ||
* @param repetition {Number} The nth occurrence of this header text, starting with 0. Not required for the 0th instance. | ||
* @param moduleName {String} The name of the module of the given header (required only for 'nodejs.org' mode). | ||
* @return {String} The header anchor that is compatible with the given mode. | ||
*/ | ||
function anchor( | ||
header: string, | ||
mode?: | ||
| "github.com" | ||
| "nodejs.org" | ||
| "bitbucket.org" | ||
| "ghost.org" | ||
| "gitlab.com", | ||
repetition?: number, | ||
moduleName?: string | ||
): string; | ||
export = anchor; | ||
} |
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
Oops, something went wrong.