35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
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[]
|
|
}
|
|
}
|