Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blockquote And Code formatting not working #27

Open
NickvashKani opened this issue Dec 20, 2022 · 1 comment
Open

Blockquote And Code formatting not working #27

NickvashKani opened this issue Dec 20, 2022 · 1 comment

Comments

@NickvashKani
Copy link
Contributor

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
Copy link
Contributor Author

NickvashKani commented Dec 21, 2022

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant