Can I link to a file for downloading (other than PDF) in a GitHub wiki?

China☆狼群 提交于 2019-11-29 10:58:46

First, try making a files subdirectory in your wiki, and putting your files in there.

I tried using an html anchor tag

<a href="files/file.csv" download="file.csv">download this</a>

instead of the markdown link syntax

[download this](files/file.csv)

but it seems that GitHub wiki strips out the download attribute from the anchor tag.

In the end, I zipped my spreadsheet in a zip file and had the markdown link point to the zip file.

[download this](files/file.csv.zip)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!