acmpesuecc / acmpesuecc/mettu

fix: Integrate preprocessed images into markdown

Aberta
#4 41 comentários 0 reações 1 responsável Reivindicada por @sanchita-suni Ver no GitHub
bounty: 550 bug enhancement
Linguagem predominante
Python
Estrelas
1
Forks
11
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.