acmpesuecc / acmpesuecc/mettu

fix: Integrate preprocessed images into markdown

未关闭
#4 41 条评论 0 个 reaction 已指派 1 人 已被 @sanchita-suni 认领 在 GitHub 查看
bounty: 550 bug enhancement
主要语言
Python
星标
1
派生
11
PR 合并指标
30 天内没有已合并 PR

描述

Currently, `vite.config.mjs` runs the `image-preprocess.mjs` and preprocesses the image. However, these images are not used in rendering of the markdown. Performance is left on the table, and preprocessing currently is just overhead.

_Notes of the maintainer_
I've tried unsuccessfully to change the image path in the .md during the build process, but I feel like you should be able to first pick the right image, so that _might_ mean passing args to the build script from vite, and _maybe_ serve different images based on width (using css maybe? idk, but this implementation will be bonus :) ). Otherwise, just pick one res, edit the preprocess script accordingly and integrate the preprocess images. :)

I'm pretty sure there's an easier way, but i've been dense so far

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。