mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-08 17:18:17 +08:00
35 lines
722 B
TypeScript
35 lines
722 B
TypeScript
export {gfmFootnoteFromMarkdown, gfmFootnoteToMarkdown} from './lib/index.js'
|
|
|
|
export interface ToMarkdownOptions {
|
|
// To do: next major: change default.
|
|
/**
|
|
* Use a blank line for the first line of footnote definitions
|
|
* (`boolean`, default: `false`).
|
|
*/
|
|
firstLineBlank?: boolean | null | undefined
|
|
}
|
|
|
|
declare module 'mdast-util-to-markdown' {
|
|
interface ConstructNameMap {
|
|
/**
|
|
* Footnote definition.
|
|
*
|
|
* ```markdown
|
|
* > | [^a]: B.
|
|
* ^^^^^^^^
|
|
* ```
|
|
*/
|
|
footnoteDefinition: 'footnoteDefinition'
|
|
|
|
/**
|
|
* Footnote reference.
|
|
*
|
|
* ```markdown
|
|
* > | A[^b].
|
|
* ^^^^
|
|
* ```
|
|
*/
|
|
footnoteReference: 'footnoteReference'
|
|
}
|
|
}
|