getgrav / grav-plugin-highlight

Grav Highlight Plugin
https://getgrav.org
MIT License
29 stars 11 forks source link

Unformats py code #21

Open gerroon opened 5 years ago

gerroon commented 5 years ago

Hi

I am trying to embed some py code like

Class Draw:
    def __init__(self):
        self.vertices = []
        self.colors = []
        self.text = []

here is how it is in grav screenshot_2019-01-22_20-56-30

Which renders like

screenshot_2019-01-asdsadsadsa-53-07

I am using it on Debian X64, Apache/2.4.37, PHP Version 7.1.20-1, Grav v1.5.6 - Admin v1.8.9

rhukster commented 5 years ago

I think this is specifically an issue of the highlight plugin, not Grav itself.

rhukster commented 5 years ago

I can't replicate this actually.. with latest versions of plugins in quark theme:

image 2019-01-26 at 12 34 07 pm

might be something specific to your theme overriding the layout?

gerroon commented 5 years ago

I will try update grav and the plugin, thanks

dgellow commented 4 years ago

Looks like a text-align: center applied somewhere. @gerroon did you find a solution to your problem?

gerroon commented 4 years ago

Looks like a text-align: center applied somewhere. @gerroon did you find a solution to your problem?

No I did not, although I have not search for a solution since then.

dgellow commented 4 years ago

If your website is public and you share a link I can quickly check to see what CSS rule is causing the issue in the rendered styles.