-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
Prism suggestion yields weird looking code element #430
Comments
Could you please post a link where I can see it live? |
Sure, here's a link: https://blog.layle.dev/instrumentation-with-revng/. |
You can inject this code in the Ghost Admin: <style>
.l-post-content pre {
padding: 0 16px !important;
overflow: hidden !important;
}
.l-post-content pre > code {
padding: 16px 0 !important;
overflow: auto !important;
}
</style> |
Seems to work! Thank you! |
Just noticed an issue caused by that suggestion. Now scrollbars have a padding, ideally they would just be as long as the width of the element. Example: https://layle.me/instrumentation-with-revng/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I followed the recommended way to add syntax highlighting via Prism. I added the following code to my post via code injection:
Header:
Footer:
However, looking up the element in the rendered post shows an element that has a weird looking height and the padding on the left looks a bit off too:
This is the view from the post editor:
I would also like to know what changes I have to make to prevent the source code from edging too close to the right side of the code block. I'd prefer to have an equal padding on the left and right:
The text was updated successfully, but these errors were encountered: