Clean up dependencies
All checks were successful
Build and Push / build (push) Successful in 18s

This commit is contained in:
2026-02-16 15:12:59 -05:00
parent d181f77fb2
commit 2f15523a55
14941 changed files with 0 additions and 2078483 deletions

View File

@@ -1,24 +0,0 @@
/**
* Plugin to add support for serializing as HTML.
*
* @param {Options | null | undefined} [options]
* Configuration (optional).
* @returns {undefined}
* Nothing.
*/
export default function rehypeStringify(options?: Options | null | undefined): undefined;
export default class rehypeStringify {
/**
* Plugin to add support for serializing as HTML.
*
* @param {Options | null | undefined} [options]
* Configuration (optional).
* @returns {undefined}
* Nothing.
*/
constructor(options?: Options | null | undefined);
compiler: (tree: Root, file: import("vfile").VFile) => string;
}
import type { Options } from 'hast-util-to-html';
import type { Root } from 'hast';
//# sourceMappingURL=index.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,kDALW,OAAO,GAAG,IAAI,GAAG,SAAS,GAExB,SAAS,CAiBrB;;IAtBD;;;;;;;OAOG;IACH,sBALW,OAAO,GAAG,IAAI,GAAG,SAAS,EAmBpC;IARC,8DAAwB;;6BApBA,mBAAmB;0BADtB,MAAM"}

View File

@@ -1,31 +0,0 @@
/**
* @import {Root} from 'hast'
* @import {Options} from 'hast-util-to-html'
* @import {Compiler, Processor} from 'unified'
*/
import {toHtml} from 'hast-util-to-html'
/**
* Plugin to add support for serializing as HTML.
*
* @param {Options | null | undefined} [options]
* Configuration (optional).
* @returns {undefined}
* Nothing.
*/
export default function rehypeStringify(options) {
/** @type {Processor<undefined, undefined, undefined, Root, string>} */
// @ts-expect-error: TS in JSDoc generates wrong types if `this` is typed regularly.
const self = this
const settings = {...self.data('settings'), ...options}
self.compiler = compiler
/**
* @type {Compiler<Root, string>}
*/
function compiler(tree) {
return toHtml(tree, settings)
}
}