hmfaysal / Notepad

Notepad is a Jekyll theme which is very simple, clean and beautiful
http://hmfaysal.github.io/Notepad/
263 stars 311 forks source link

Code Highlighting does not work #26

Open Zir0-93 opened 8 years ago

Zir0-93 commented 8 years ago

Hello,

It seems the pygments or rouge highlighter is not working when I need to syntax color code using this theme. Is there any way to fix this?

saurabhshri commented 7 years ago

+1

@Zir0-93 Did you find any solution?

@hmfaysal Any updates?

Choosing language while highlighting

js

Always gets rendered like this no matter what

nothing

Here's the HTML code being rendered.

html

Here's the CSS being rendered.

image

If it helps, here's my blog repo : https://github.com/saurabhshri/saurabhshri.github.io

Zir0-93 commented 7 years ago

No solution found yet, started using a different theme for the time being.

saurabhshri commented 7 years ago

@Zir0-93 Try

markdown:    kramdown

kramdown:
  input: GFM
  syntax_highlighter: rouge

and remove everything else related to highlighter like coderay.

I tried numerous things yesterday and finally got it to work. I think this should do it :)

PS : Here's my config file in case you want to see it yourself : https://github.com/saurabhshri/saurabhshri.github.io/blob/master/_config.yml