site/node_modules/micromark-extension-gfm-footnote/dev/index.d.ts

35 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
export {gfmFootnote} from './lib/syntax.js'
export {
gfmFootnoteHtml,
defaultBackLabel,
type BackLabelTemplate,
type Options as HtmlOptions
} from './lib/html.js'
declare module 'micromark-util-types' {
interface TokenTypeMap {
gfmFootnoteCall: 'gfmFootnoteCall'
gfmFootnoteCallLabelMarker: 'gfmFootnoteCallLabelMarker'
gfmFootnoteCallMarker: 'gfmFootnoteCallMarker'
gfmFootnoteCallString: 'gfmFootnoteCallString'
gfmFootnoteDefinition: 'gfmFootnoteDefinition'
gfmFootnoteDefinitionIndent: 'gfmFootnoteDefinitionIndent'
gfmFootnoteDefinitionLabel: 'gfmFootnoteDefinitionLabel'
gfmFootnoteDefinitionLabelMarker: 'gfmFootnoteDefinitionLabelMarker'
gfmFootnoteDefinitionLabelString: 'gfmFootnoteDefinitionLabelString'
gfmFootnoteDefinitionMarker: 'gfmFootnoteDefinitionMarker'
gfmFootnoteDefinitionWhitespace: 'gfmFootnoteDefinitionWhitespace'
}
interface ParseContext {
gfmFootnotes?: string[]
}
interface CompileData {
gfmFootnoteDefinitions?: Record<string, string>
gfmFootnoteDefinitionStack?: string[]
gfmFootnoteCallCounts?: Record<string, number>
gfmFootnoteCallOrder?: string[]
}
}