uwsampa / research-group-web

a template for research group sites
Other
186 stars 400 forks source link

Blockquote And Code formatting not working #27

Open NickvashKani opened 1 year ago

NickvashKani commented 1 year ago

Has anyone else had an issue with getting blockquotes and code segments to render properly? According to the kramdown syntax, blockquotes can be achieved with:

This is a Quote

  • Some guy

but when I build and load the jekyll website, the quote appears as normal text.

Same issue with the codeblock. I tried:

Some code
for (int I = 0, I <100, i++)

but it also appears as normal text. Has anyone else gotten code and/or quotes rendering properly using this template?

Thanks Nickvash Kani

NickvashKani commented 1 year ago

Managed to figure this out. The issue was that there wasn't a CSS file with the highlight rules defined. So I used this guide:

https://stackoverflow.com/questions/41773267/syntax-highlighting-not-working-in-md-files-for-jekyll

And added the .scss file to the ./css/ folder (I personally went with github.scss because I thought it matched the template best). Then in the default.html file add the following line toward the top:

<link rel="stylesheet" href="{{ site.base }}/css/github.css">

PS. In order to have Jekyll recognize a .scss file and compile it to the corresponding .css file you need to add some blank front matter to the top of the .scss file (github isn't letting me add it below, but refer to the other .scss files).