🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
3
node_modules/retext-stringify/lib/index.d.ts
generated
vendored
Normal file
3
node_modules/retext-stringify/lib/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/** @type {import('unified').Plugin<void[], Root, string>} */
|
||||
export default function retextStringify(): void
|
||||
export type Root = import('nlcst').Root
|
||||
15
node_modules/retext-stringify/lib/index.js
generated
vendored
Normal file
15
node_modules/retext-stringify/lib/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* @typedef {import('nlcst').Root} Root
|
||||
*/
|
||||
|
||||
import {toString} from 'nlcst-to-string'
|
||||
|
||||
/** @type {import('unified').Plugin<void[], Root, string>} */
|
||||
export default function retextStringify() {
|
||||
Object.assign(this, {Compiler})
|
||||
}
|
||||
|
||||
/** @type {import('unified').CompilerFunction<Root, string>} */
|
||||
function Compiler(tree) {
|
||||
return toString(tree)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue