Can I link to a file for download (other than PDF) on the GitHub wiki?

When you link to a PDF file using:

[download this](file.pdf)

it downloads the pdf file. I have an Excel workbook that I want to allow someone to download with:

[download this](file.xlsx)

When I click on it, I need to create a new page on the wiki. Is there any markdown syntax I can add that identifies the link as something to download?

If I need to, I can save the Excel workbook as PDF, but it won't be pretty.

Thank!

+3


source to share


1 answer


First try to create a subdirectory files

in your wiki and put your files there.

I tried using html anchor tag

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

      

instead of markdown link syntax



[download this](files/file.csv)

      

but it looks like the GitHub wiki is removing the upload attribute from the anchor tag.

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

[download this](files/file.csv.zip)

      

+1


source







All Articles