dstack4273 / dstack4273.github.io

Working on setting up a personal blog using the python package pelican...a work in progress
http://allonsyblog.com
1 stars 0 forks source link

Pygments code styling isn't working #2

Closed dstack4273 closed 7 years ago

dstack4273 commented 7 years ago

possibly related to: https://github.com/getpelican/pelican-themes/issues/172

"":https://github.com/DandyDev/pelican-bootstrap3/issues/223

someone elsee using Pelican-Bootstrap3 and seems to have it working as intended?: http://beneathdata.com/how-to/visualizing-my-location-history/

source code - https://github.com/tylerhartley/beneathdata


When inserting code sections within a post, no style is applied. Plain black text on a white background is rendered instead.

dstack4273 commented 7 years ago

I was able to find another blog that the user has Bootstrap 3 as their theme, complete with functional pygments. After combing through their pelicanconf file, I noticed that they were using a slightly different codehilite in their MD_EXTENSIONS than I had. After changing it from 'codehilite' to 'codehilite(css_class=highlight)' made everything work great.

Source pelicanconf I used for inspiration. Woot!