Gist code not formatting correctly
-
When I embed a gist snippet on my wordpress.com blog the code is displayed but is formatted incorrectly. I use the instructions provided here and have tried the three different methods of embedding: https://en.support.wordpress.com/gist/
The post affected is: https://philmikejones.wordpress.com/2015/03/19/automate-package-loading-r/
Compare the displayed, formatted, code (with incorrect line numbering, and text that is on the wrong lines (especially the double-quotes at the bottom)) with the raw.
The blog I need help with is: (visible only to logged in users)
-
Hello, I tried that code on a test page using the “Embedding with a URL” method (on the page you noted) and it formatted correctly for me.
I compared the html of your page and mine and saw that yours has https://gist.github.com/3178163.js while mine has https://gist.github.com/stevenworthington/3178163.js
Perhaps you can try redoing it using the longer link.
-
Thanks for taking a look.
As you were able to get the code displaying correctly I suspected it was a theme issue. Having tried other themes I think it’s an issue with the Quadra issue I was using (and I think Hexa is affected, too).
I’ll email Automattic about it.
- The topic ‘Gist code not formatting correctly’ is closed to new replies.