tnfshcec / tnfshcec-web

電機社社網
http://www.tnfshcec.com/
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

image assets in markdown needs <script> tag #72

Closed Eggrror404 closed 6 months ago

Eggrror404 commented 6 months ago

because mdsvex/vite doesn't automatically resolve image paths so currently we need to use image by the "typical vite process": import in <script>, then use variable in src.

we'd love to auto-resolve links in images..

some resources: https://github.com/pngwn/MDsveX/issues/475 https://github.com/MailCheck-co/mailcheck.site/blob/master/mdsvexplugins/mdsvex-url-to-import.js