20 lines
388 B
TypeScript
20 lines
388 B
TypeScript
|
export {
|
||
|
gfmStrikethroughFromMarkdown,
|
||
|
gfmStrikethroughToMarkdown
|
||
|
} from './lib/index.js'
|
||
|
|
||
|
// Add custom data tracked to turn a syntax tree into markdown.
|
||
|
declare module 'mdast-util-to-markdown' {
|
||
|
interface ConstructNameMap {
|
||
|
/**
|
||
|
* Whole strikethrough.
|
||
|
*
|
||
|
* ```markdown
|
||
|
* > | ~~a~~
|
||
|
* ^^^^^
|
||
|
* ```
|
||
|
*/
|
||
|
strikethrough: 'strikethrough'
|
||
|
}
|
||
|
}
|