When using the dev.to night theme (Which is my favorite), I prefer the Markdown code Snippet because it's dark and doesn't burn my eyes.
But in the other hands if the publisher is cross-posting and use a Github Gist and modify that in one place and see that change reflected in multiple sites is an excellent advantage for the one who publishes the Gist.
What are your thoughts about it?
I always prefer snippets, as I easily see the code and the explanation about it together without context change (change tabs vs just a bit of scroll). But if the snippet is too long, I like a gist/repo.
EDIT: Also, you are writting for other, so you want to make it easy for them to read it. And only then you want to make it easy for you to update your content (something that occurs way less times). It seems like a premature microptimization ;)