diff options
| -rw-r--r-- | src/build/to-html.mjs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/build/to-html.mjs b/src/build/to-html.mjs index 97eb3f6..aec465a 100644 --- a/src/build/to-html.mjs +++ b/src/build/to-html.mjs @@ -8,7 +8,6 @@ import remarkFrontmatter from "remark-frontmatter"; import remarkCaptions from "remark-captions"; import remarkRehype from "remark-rehype"; import rehypeSlug from "rehype-slug"; -import rehypePicture from "rehype-picture"; import rehypeKaTeX from "rehype-katex"; import rehypeRaw from "rehype-raw"; import rehypeAutolinkHeadings from "rehype-autolink-headings"; @@ -88,11 +87,6 @@ const autoLinkOption = { }, }; -const pictureOptions = { - png: { avif: "image/avif" }, - jpg: { avif: "image/avif" }, -}; - const captionsOptions = { external: { table: "Table:", @@ -116,7 +110,6 @@ const generator = unified() .use(remarkRehype, { allowDangerousHtml: true }) .use(rehypeRaw) .use(remarkRemoveFootnoteHeader) - .use(rehypePicture, pictureOptions) .use(rehypeKaTeX) .use(rehypeSlug) .use(rehypeHighlight, { languages: highlightLanguages }) @@ -142,7 +135,6 @@ export const mdToHtmlRaw = (content, lang) => { .use(remarkRehype, { allowDangerousHtml: true }) .use(rehypeRaw) .use(remarkRemoveFootnoteHeader, { title: i18n[lang]["footnotes_title"] }) - .use(rehypePicture, pictureOptions) .use(rehypeKaTeX) .use(rehypeSlug) .use(rehypeHighlight, { languages: highlightLanguages }) |