-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.d.ts
37 lines (37 loc) · 1.14 KB
/
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
declare module 'markdown-it-github-headings' {
import type { PluginWithOptions } from 'markdown-it';
type GithubHeadingsPluginOptions = {
/**
* Name of the class that will be added to the anchor tag.
* @default "anchor"
*/
className?: string;
/**
* Add a prefix to each heading ID.
* @see https://github.com/Flet/markdown-it-github-headings#why-should-i-prefix-heading-ids
* @default true
*/
prefixHeadingIds?: boolean;
/**
* If `prefixHeadingIds` is true, use this string to prefix each ID.
* @default "user-content"
*/
prefix?: string;
/**
* Adds the icon next to each heading.
* @default true
*/
enableHeadingLinkIcons?: boolean;
/**
* If `enableHeadingLinkIcons` is true, use this to supply a custom icon (or anything really).
*/
linkIcon?: string;
/**
* Reset the slugger counter between .render calls for duplicate headers. (See tests for example).
* @default true
*/
resetSlugger?: boolean;
};
const markdownItGithubHeadings: PluginWithOptions<GithubHeadingsPluginOptions>;
export = markdownItGithubHeadings;
}