This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes GH-4. Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com> Reviewed-by: Jonathan Haines <jonno.haines@gmail.com> Reviewed-by: Titus Wormer <tituswormer@gmail.com>
- Loading branch information
Showing
5 changed files
with
48 additions
and
1 deletion.
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,20 @@ | ||
// TypeScript Version: 3.4 | ||
|
||
import {Plugin} from 'unified' | ||
|
||
declare namespace remarkFootnotes { | ||
type Footnotes = Plugin<[RemarkFootnotesOptions?]> | ||
|
||
interface RemarkFootnotesOptions { | ||
/** | ||
* Whether to support `^[inline notes]` | ||
* | ||
* @defaultValue false | ||
*/ | ||
inlineNotes?: boolean | ||
} | ||
} | ||
|
||
declare const remarkFootnotes: remarkFootnotes.Footnotes | ||
|
||
export = remarkFootnotes |
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,6 @@ | ||
import unified = require('unified') | ||
import footnotes = require('remark-footnotes') | ||
|
||
unified().use(footnotes) | ||
unified().use(footnotes, {}) | ||
unified().use(footnotes, {inlineNotes: true}) |
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,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"lib": ["es2015"], | ||
"strict": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"remark-footnotes": ["index.d.ts"] | ||
} | ||
} | ||
} |
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,7 @@ | ||
{ | ||
"extends": "dtslint/dtslint.json", | ||
"rules": { | ||
"semicolon": false, | ||
"whitespace": false | ||
} | ||
} |