mirror of
https://github.com/sern-handler/website
synced 2026-06-22 15:52:30 +00:00
feat: migrate to starlight
This commit is contained in:
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)
|
||||
}
|
||||
Reference in New Issue
Block a user