DEV Community

loading...

How to link to a specific gist version in dev.to

suntong
・1 min read

The syntax to link to a specific gist file from dev.to is:

{% gist https://gist.github.com/CristinaSolana/1885435 file=gistfile1.md %}

but how to link to a specific gist version of that file?

I tried to replace the above url with url to that specific version, but got 500 Internal error when publishing it.

Discussion (4)

Collapse
rhymes profile image
rhymes

I don't think you can, the current code does not support it

You should open an issue :)

Collapse
suntong profile image
suntong Author • Edited
`{% gist https://gist.github.com/suntong/3a31faf8129d3d7a380122d5a6d48ff6/f77d01e82defbf736ebf4879a812cf9c916a9252 file=Images.tmpl %}`
Collapse
suntong profile image
suntong Author

Thanks everyone for your replies, I've opened an issue at
github.com/thepracticaldev/dev.to/...
as per rhymes  :)

Collapse
vguleaev profile image
Vladislav Guleaev

I have the same, prob it is a bug

Forem Open with the Forem app