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

Multi tool use
When you link to a PDF file using:
[download this](file.pdf)
it downloads the pdf file. I have an excel workbook that I'd like to allow someone to download using:
[download this](file.xlsx)
When I click it, it takes me to create a new page in the wiki. Is there any markdown syntax I can add that identifies the link as something to download?
If I have to, I can save the excel workbook as a PDF, but it's not going to be pretty.
Thank you!
github hyperlink wiki
add a comment |
When you link to a PDF file using:
[download this](file.pdf)
it downloads the pdf file. I have an excel workbook that I'd like to allow someone to download using:
[download this](file.xlsx)
When I click it, it takes me to create a new page in the wiki. Is there any markdown syntax I can add that identifies the link as something to download?
If I have to, I can save the excel workbook as a PDF, but it's not going to be pretty.
Thank you!
github hyperlink wiki
Why are you using an Excel spreadsheet (which requires downloading and an installation of Excel to use) rather than just a link to a shared Google spreadsheet?
– Ken White
Jul 13 '17 at 1:03
Primarily, it's because this repository will also act as an archive for the next 5-10 years, and I was wanting everything in the same place. That is a good idea, though. Based on your response, I'm assuming what I'm looking for isn't possible, so I'll either use your suggestion or PDF it. Thanks.
– Kyle Ward
Jul 13 '17 at 13:31
I wouldn't assume it isn't possible (if I knew that for certain, I would have posted an answer). I just wondered about using a format that requires people to have Excel installed and download a file when there was another more universal option available that didn't require either.
– Ken White
Jul 13 '17 at 14:02
add a comment |
When you link to a PDF file using:
[download this](file.pdf)
it downloads the pdf file. I have an excel workbook that I'd like to allow someone to download using:
[download this](file.xlsx)
When I click it, it takes me to create a new page in the wiki. Is there any markdown syntax I can add that identifies the link as something to download?
If I have to, I can save the excel workbook as a PDF, but it's not going to be pretty.
Thank you!
github hyperlink 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'd like to allow someone to download using:
[download this](file.xlsx)
When I click it, it takes me to create a new page in the wiki. Is there any markdown syntax I can add that identifies the link as something to download?
If I have to, I can save the excel workbook as a PDF, but it's not going to be pretty.
Thank you!
github hyperlink wiki
github hyperlink wiki
asked Jul 13 '17 at 0:59
Kyle WardKyle Ward
375
375
Why are you using an Excel spreadsheet (which requires downloading and an installation of Excel to use) rather than just a link to a shared Google spreadsheet?
– Ken White
Jul 13 '17 at 1:03
Primarily, it's because this repository will also act as an archive for the next 5-10 years, and I was wanting everything in the same place. That is a good idea, though. Based on your response, I'm assuming what I'm looking for isn't possible, so I'll either use your suggestion or PDF it. Thanks.
– Kyle Ward
Jul 13 '17 at 13:31
I wouldn't assume it isn't possible (if I knew that for certain, I would have posted an answer). I just wondered about using a format that requires people to have Excel installed and download a file when there was another more universal option available that didn't require either.
– Ken White
Jul 13 '17 at 14:02
add a comment |
Why are you using an Excel spreadsheet (which requires downloading and an installation of Excel to use) rather than just a link to a shared Google spreadsheet?
– Ken White
Jul 13 '17 at 1:03
Primarily, it's because this repository will also act as an archive for the next 5-10 years, and I was wanting everything in the same place. That is a good idea, though. Based on your response, I'm assuming what I'm looking for isn't possible, so I'll either use your suggestion or PDF it. Thanks.
– Kyle Ward
Jul 13 '17 at 13:31
I wouldn't assume it isn't possible (if I knew that for certain, I would have posted an answer). I just wondered about using a format that requires people to have Excel installed and download a file when there was another more universal option available that didn't require either.
– Ken White
Jul 13 '17 at 14:02
Why are you using an Excel spreadsheet (which requires downloading and an installation of Excel to use) rather than just a link to a shared Google spreadsheet?
– Ken White
Jul 13 '17 at 1:03
Why are you using an Excel spreadsheet (which requires downloading and an installation of Excel to use) rather than just a link to a shared Google spreadsheet?
– Ken White
Jul 13 '17 at 1:03
Primarily, it's because this repository will also act as an archive for the next 5-10 years, and I was wanting everything in the same place. That is a good idea, though. Based on your response, I'm assuming what I'm looking for isn't possible, so I'll either use your suggestion or PDF it. Thanks.
– Kyle Ward
Jul 13 '17 at 13:31
Primarily, it's because this repository will also act as an archive for the next 5-10 years, and I was wanting everything in the same place. That is a good idea, though. Based on your response, I'm assuming what I'm looking for isn't possible, so I'll either use your suggestion or PDF it. Thanks.
– Kyle Ward
Jul 13 '17 at 13:31
I wouldn't assume it isn't possible (if I knew that for certain, I would have posted an answer). I just wondered about using a format that requires people to have Excel installed and download a file when there was another more universal option available that didn't require either.
– Ken White
Jul 13 '17 at 14:02
I wouldn't assume it isn't possible (if I knew that for certain, I would have posted an answer). I just wondered about using a format that requires people to have Excel installed and download a file when there was another more universal option available that didn't require either.
– Ken White
Jul 13 '17 at 14:02
add a comment |
1 Answer
1
active
oldest
votes
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)
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f45069794%2fcan-i-link-to-a-file-for-downloading-other-than-pdf-in-a-github-wiki%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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)
add a comment |
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)
add a comment |
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)
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)
answered Oct 25 '17 at 16:58
Christian LongChristian Long
3,83413538
3,83413538
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f45069794%2fcan-i-link-to-a-file-for-downloading-other-than-pdf-in-a-github-wiki%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
xT5Gq8nYTSpx0ij,uT hgedficlZdj,Qt7RD7rXaBCp kvAy6p6g
Why are you using an Excel spreadsheet (which requires downloading and an installation of Excel to use) rather than just a link to a shared Google spreadsheet?
– Ken White
Jul 13 '17 at 1:03
Primarily, it's because this repository will also act as an archive for the next 5-10 years, and I was wanting everything in the same place. That is a good idea, though. Based on your response, I'm assuming what I'm looking for isn't possible, so I'll either use your suggestion or PDF it. Thanks.
– Kyle Ward
Jul 13 '17 at 13:31
I wouldn't assume it isn't possible (if I knew that for certain, I would have posted an answer). I just wondered about using a format that requires people to have Excel installed and download a file when there was another more universal option available that didn't require either.
– Ken White
Jul 13 '17 at 14:02