vscode-factoriomod-debug icon indicating copy to clipboard operation
vscode-factoriomod-debug copied to clipboard

Some URLs in MD are getting mangled when I publish.

Open kryojenik opened this issue 1 year ago • 3 comments
trafficstars

I have the following line in my README.MD:

[![shield](https://img.shields.io/badge/Ko--fi-Donate%20-hotpink?logo=kofi&logoColor=white)](https://ko-fi.com/M4M2LCWTH) [![shield](https://img.shields.io/badge/dynamic/json?color=orange&label=Factorio&query=downloads_count&suffix=%20downloads&url=https%3A%2F%2Fmods.factorio.com%2Fapi%2Fmods%2Floaders-modernized)](https://mods.factorio.com/mod/loaders-modernized)

That gets some characters escaped to this when I publish. [![shield](https://img.shields.io/badge/Ko--fi-Donate%20-hotpink?logo=kofi\&logoColor=white)](https://ko-fi.com/M4M2LCWTH) [![shield](https://img.shields.io/badge/dynamic/json?color=orange\&label=Factorio\&query=downloads_count\&suffix=%20downloads\&url=https%3A%2F%2Fmods.factorio.com%2Fapi%2Fmods%2Floaders-modernized)](https://mods.factorio.com/mod/loaders-modernized)

I have to manually remove the '' from the links for them to display properly. Both of them seem to render here correctly, but the bottom one does not on the mod portal.

kryojenik avatar Oct 28 '24 01:10 kryojenik

i've investigated this some and it does not seem to be any of the specific processing i'm doing that does this, but rather simply the act of passing it through remark. I've not yet pinned down exactly how or why they mangle links in this way or what to do about it though.

justarandomgeek avatar Nov 02 '24 02:11 justarandomgeek

Then does that mean a bug needs to be filed against the mod portal?

kryojenik avatar Nov 04 '24 04:11 kryojenik

next release will have this only-slightly-cursed fix to just stop escaping the & entirely https://github.com/justarandomgeek/vscode-factoriomod-debug/commit/43850bfbddd8a9c437847ce74bbdaff90c682a65

justarandomgeek avatar Aug 19 '25 19:08 justarandomgeek