chore: remove to-vfile package

This commit is contained in:
Thomas 2025-03-13 18:09:45 +00:00
parent cb11ac8db8
commit 0c64e015d1
No known key found for this signature in database
3 changed files with 2 additions and 13 deletions

View file

@ -52,7 +52,6 @@
"sanitize-html": "^2.14.0",
"sass": "^1.85.1",
"strip-markdown": "^6.0.0",
"to-vfile": "^8.0.0",
"unified": "^11.0.5",
"zod": "^3.24.1"
},

View file

@ -6,7 +6,7 @@ import remarkStringify from 'remark-stringify';
import remarkRehype from 'remark-rehype';
import rehypeStringify from 'rehype-stringify';
import stripMarkdown from 'strip-markdown';
import type { Parent, Literal } from 'unist';
import type { Literal } from 'unist';
import remarkGfm from 'remark-gfm';
import { load as loadYaml } from 'js-yaml';
@ -69,9 +69,6 @@ export class MarkdownBuilder {
.use(remarkFrontmatter)
.use(remarkStringify)
.use(remarkRehype, { allowDangerousHtml: true, footnoteLabel: 'notes', footnoteLabelTagName: 'sup' })
.use(rehypeStringify, {
allowDangerousHtml: true,
allowDangerousCharacters: true,
});
.use(rehypeStringify, { allowDangerousHtml: true, allowDangerousCharacters: true });
}
}

View file

@ -2699,13 +2699,6 @@ to-regex-range@^5.0.1:
dependencies:
is-number "^7.0.0"
to-vfile@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/to-vfile/-/to-vfile-8.0.0.tgz#4e1282bf251ce2beacae8e23a1752b3b3986bd29"
integrity sha512-IcmH1xB5576MJc9qcfEC/m/nQCFt3fzMHz45sSlgJyTWjRbKW1HAkJpuf3DgE57YzIlZcwcBZA5ENQbBo4aLkg==
dependencies:
vfile "^6.0.0"
totalist@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/totalist/-/totalist-3.0.1.tgz#ba3a3d600c915b1a97872348f79c127475f6acf8"