summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2026-06-14 04:27:09 +0200
committerache <ache@ache.one>2026-06-14 04:27:09 +0200
commiteda8009303a6c7e9fab1a0eeb5151d66bcc77acf (patch)
treebf6fec1d7dc41cb6b23616ba3606bb1b59bf54d1
parent[Framarticle] Correction de la version du SVG (diff)
Retrait du support d'avifHEADmaster
-rw-r--r--src/build/to-html.mjs8
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 })