🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
28
node_modules/mdast-util-gfm/lib/index.d.ts
generated
vendored
Normal file
28
node_modules/mdast-util-gfm/lib/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* Create an extension for `mdast-util-from-markdown` to enable GFM (autolink
|
||||
* literals, footnotes, strikethrough, tables, tasklists).
|
||||
*
|
||||
* @returns {Array<FromMarkdownExtension>}
|
||||
* Extension for `mdast-util-from-markdown` to enable GFM (autolink literals,
|
||||
* footnotes, strikethrough, tables, tasklists).
|
||||
*/
|
||||
export function gfmFromMarkdown(): Array<FromMarkdownExtension>
|
||||
/**
|
||||
* Create an extension for `mdast-util-to-markdown` to enable GFM (autolink
|
||||
* literals, footnotes, strikethrough, tables, tasklists).
|
||||
*
|
||||
* @param {Options | null | undefined} [options]
|
||||
* Configuration.
|
||||
* @returns {ToMarkdownExtension}
|
||||
* Extension for `mdast-util-to-markdown` to enable GFM (autolink literals,
|
||||
* footnotes, strikethrough, tables, tasklists).
|
||||
*/
|
||||
export function gfmToMarkdown(
|
||||
options?: Options | null | undefined
|
||||
): ToMarkdownExtension
|
||||
export type FromMarkdownExtension = import('mdast-util-from-markdown').Extension
|
||||
export type ToMarkdownExtension = import('mdast-util-to-markdown').Options
|
||||
/**
|
||||
* Configuration.
|
||||
*/
|
||||
export type Options = import('mdast-util-gfm-table').Options
|
||||
67
node_modules/mdast-util-gfm/lib/index.js
generated
vendored
Normal file
67
node_modules/mdast-util-gfm/lib/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
/**
|
||||
* @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
|
||||
* @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {import('mdast-util-gfm-table').Options} Options
|
||||
* Configuration.
|
||||
*/
|
||||
|
||||
import {
|
||||
gfmAutolinkLiteralFromMarkdown,
|
||||
gfmAutolinkLiteralToMarkdown
|
||||
} from 'mdast-util-gfm-autolink-literal'
|
||||
import {
|
||||
gfmFootnoteFromMarkdown,
|
||||
gfmFootnoteToMarkdown
|
||||
} from 'mdast-util-gfm-footnote'
|
||||
import {
|
||||
gfmStrikethroughFromMarkdown,
|
||||
gfmStrikethroughToMarkdown
|
||||
} from 'mdast-util-gfm-strikethrough'
|
||||
import {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'
|
||||
import {
|
||||
gfmTaskListItemFromMarkdown,
|
||||
gfmTaskListItemToMarkdown
|
||||
} from 'mdast-util-gfm-task-list-item'
|
||||
|
||||
/**
|
||||
* Create an extension for `mdast-util-from-markdown` to enable GFM (autolink
|
||||
* literals, footnotes, strikethrough, tables, tasklists).
|
||||
*
|
||||
* @returns {Array<FromMarkdownExtension>}
|
||||
* Extension for `mdast-util-from-markdown` to enable GFM (autolink literals,
|
||||
* footnotes, strikethrough, tables, tasklists).
|
||||
*/
|
||||
export function gfmFromMarkdown() {
|
||||
return [
|
||||
gfmAutolinkLiteralFromMarkdown,
|
||||
gfmFootnoteFromMarkdown(),
|
||||
gfmStrikethroughFromMarkdown,
|
||||
gfmTableFromMarkdown,
|
||||
gfmTaskListItemFromMarkdown
|
||||
]
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an extension for `mdast-util-to-markdown` to enable GFM (autolink
|
||||
* literals, footnotes, strikethrough, tables, tasklists).
|
||||
*
|
||||
* @param {Options | null | undefined} [options]
|
||||
* Configuration.
|
||||
* @returns {ToMarkdownExtension}
|
||||
* Extension for `mdast-util-to-markdown` to enable GFM (autolink literals,
|
||||
* footnotes, strikethrough, tables, tasklists).
|
||||
*/
|
||||
export function gfmToMarkdown(options) {
|
||||
return {
|
||||
extensions: [
|
||||
gfmAutolinkLiteralToMarkdown,
|
||||
gfmFootnoteToMarkdown(),
|
||||
gfmStrikethroughToMarkdown,
|
||||
gfmTableToMarkdown(options),
|
||||
gfmTaskListItemToMarkdown
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue