-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
index.d.ts
47 lines (43 loc) · 943 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// TypeScript Version: 3.0
import {Plugin} from 'unified'
declare namespace strip {
interface Options {
/**
* List of node types to leave unchanged.
*/
keep?: Array<
| 'heading'
| 'text'
| 'inlineCode'
| 'image'
| 'imageReference'
| 'break'
| 'blockquote'
| 'list'
| 'listItem'
| 'strong'
| 'emphasis'
| 'delete'
| 'link'
| 'linkReference'
| 'code'
| 'horizontalRule'
| 'thematicBreak'
| 'html'
| 'table'
| 'tableCell'
| 'definition'
| 'yaml'
| 'toml'
>
}
}
/**
* Remark plugin to remove Markdown formatting.
*
* Removes `html`, `code`, `horizontalRule`, `table`, `yaml`, `toml` nodes and their content,
* everything else is rendered as simple paragraphs without formatting.
* Uses `alt` text for images.
*/
declare const strip: Plugin<[strip.Options?]>
export = strip