To be able to suggest to a browser that a downloadable file is a stream file, the html anchor syntax uses the 'download' keyword. To have asciidoctor give me this:
a href="https://github.com/GPars/Website/blob/master/src/main/resources/downloads/gpars-1.0.0/gpars-samples-1.0.0.zip" download>Samples [/a> i have tried many variations of : link:https://github.com/GPars/Website/blob/master/src/main/resources/downloads/gpars-1.0.0/gpars-samples-1.0.0.zip[Samples] but no joy. Is this do-able ? thx jim |
Administrator
|
Let's add this as an option on the link tag. Could you file an issue in core? Please reference https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download Until then, you could supply a custom template for inline_anchor (for example, inline_anchor.html.slim). Here's the starting point: There's no need to use the link: prefix when the URL begins with http: or https:. In other words, you can write this as: <a href="https://github.com/GPars/Website/blob/master/src/main/resources/downloads/gpars-1.0.0/gpars-samples-1.0.0.zip[Samples]">https://github.com/GPars/Website/blob/master/src/main/resources/downloads/gpars-1.0.0/gpars-samples-1.0.0.zip[Samples] If we implement the download option, then it will look like: <a href="https://github.com/GPars/Website/blob/master/src/main/resources/downloads/gpars-1.0.0/gpars-samples-1.0.0.zip[Samples,opts=download]">https://github.com/GPars/Website/blob/master/src/main/resources/downloads/gpars-1.0.0/gpars-samples-1.0.0.zip[Samples,opts=download] Cheers, -Dan On Mon, May 23, 2016 at 8:27 AM, jnorthr [via Asciidoctor :: Discussion] <[hidden email]> wrote: To be able to suggest to a browser that a downloadable file is a stream file, the html anchor syntax uses the 'download' keyword. To have asciidoctor give me this: Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen |
Happy to file an issue Dan but have never done one before so don’t know how ;-{
Yes love the ideas for opts= type of syntax in link declarations as this opens the way for future new HTML syntax stuff we can offer in our asciidoctor ! Will let you know how it goes on inline_anchor use. thx Jim
|
Administrator
|
On Wed, May 25, 2016 at 12:20 AM, jnorthr [via Asciidoctor :: Discussion] <[hidden email]> wrote:
It's just like writing an e-mail. Just go to: Click "New Issue" Type a subject and a message, then press "Submit new issue" Cheers, |
Free forum by Nabble | Edit this page |