DEV Community

suntong
suntong

Posted on

5 1

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

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

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

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.

Top comments (4)

Collapse
 
suntong profile image
suntong • Edited
`{% gist https://gist.github.com/suntong/3a31faf8129d3d7a380122d5a6d48ff6/f77d01e82defbf736ebf4879a812cf9c916a9252 file=Images.tmpl %}`
Enter fullscreen mode Exit fullscreen mode
{{range .Images}}{{$img:=.}}
### [{{$img}}]({{$img}})
![{{$img}}]({{$img}} "{{$img}}")
{{end}}
view raw Images.tmpl hosted with ❤ by GitHub
Collapse
 
rhymes profile image
rhymes

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

You should open an issue :)

Collapse
 
vguleaev profile image
Vladislav Guleaev

I have the same, prob it is a bug

Collapse
 
suntong profile image
suntong

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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more