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

Using prism.js for code highlighting #14

Closed
obitech opened this issue Nov 21, 2017 · 1 comment
Closed

Using prism.js for code highlighting #14

obitech opened this issue Nov 21, 2017 · 1 comment

Comments

@obitech
Copy link

obitech commented Nov 21, 2017

Hey Peter,

first let me thank you providing such an amazing theme for free! Now, I'm just getting started with Ghost and I'd like to use prism.css and prism.js files for code blocks and inline code, how would I go about that with the Attila theme?

Thanks!

@ddierickx
Copy link

I don't think this is specific to attila, I just followed the explanation here:

https://grzegorowski.com/adding-code-highlighting-to-ghost-blog/

and that appears to work fine.

I did have some issues with line numbers which weren't properly aligned, I added some custom css to fix that:

<style> .line { line-height: 1.5em !important; } </style>

@obitech obitech closed this as completed Jan 2, 2018
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

2 participants