🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
56
node_modules/mdast-util-gfm-table/index.d.ts
generated
vendored
Normal file
56
node_modules/mdast-util-gfm-table/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
export type {Options} from './lib/index.js'
|
||||
|
||||
export {gfmTableFromMarkdown, gfmTableToMarkdown} from './lib/index.js'
|
||||
|
||||
// Add custom data tracked to turn markdown into a tree.
|
||||
declare module 'mdast-util-from-markdown' {
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
||||
interface CompileData {
|
||||
/**
|
||||
* Whether we’re currently in a table.
|
||||
*/
|
||||
inTable?: boolean | undefined
|
||||
}
|
||||
}
|
||||
|
||||
// Add custom data tracked to turn a syntax tree into markdown.
|
||||
declare module 'mdast-util-to-markdown' {
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
||||
interface ConstructNameMap {
|
||||
/**
|
||||
* Whole table.
|
||||
*
|
||||
* ```markdown
|
||||
* > | | a |
|
||||
* ^^^^^
|
||||
* > | | - |
|
||||
* ^^^^^
|
||||
* ```
|
||||
*/
|
||||
table: 'table'
|
||||
|
||||
/**
|
||||
* Table cell.
|
||||
*
|
||||
* ```markdown
|
||||
* > | | a |
|
||||
* ^^^^^
|
||||
* | | - |
|
||||
* ```
|
||||
*/
|
||||
tableCell: 'tableCell'
|
||||
|
||||
/**
|
||||
* Table row.
|
||||
*
|
||||
* ```markdown
|
||||
* > | | a |
|
||||
* ^^^^^
|
||||
* | | - |
|
||||
* ```
|
||||
*/
|
||||
tableRow: 'tableRow'
|
||||
}
|
||||
}
|
||||
|
||||
// Note: `Table` is exposed from `@types/mdast`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue