joeyespo / grip

Preview GitHub README.md files locally before committing them.
MIT License
6.42k stars 422 forks source link

code blocks not redenring correctly in grip #349

Closed luispresuelgit closed 2 years ago

luispresuelgit commented 2 years ago

Actual output:

image

Expected output:

image

Enviroment: $ python --version Python 3.8.10

requirements.txt:

certifi==2021.10.8
charset-normalizer==2.0.9
click==8.0.3
docopt==0.6.2
Flask==2.0.2
grip==4.5.2
idna==3.3
importlib-metadata==4.10.0
itsdangerous==2.0.1
Jinja2==3.0.3
Markdown==3.3.6
MarkupSafe==2.0.1
path-and-address==2.0.1
Pygments==2.10.0
requests==2.26.0
urllib3==1.26.7
Werkzeug==2.0.2
zipp==3.6.0
jpmvferreira commented 2 years ago

I'm getting the same problem on a clean python venv.

Also, the entire file seems to be in black and white, without any coloring, in and outside the code blocks. Here's the output in Github: image

And here's the output when using grip: image

However links work correctly, despise not being highlighted.

sparktx-mark-welsh commented 2 years ago

I'm seeing the same issue, Python 3.8.3

Jach commented 2 years ago

This was fixed for me when I upgraded from my distro's grip-4.5.2-r2 to its current 4.6.0 version.

luispresuelgit commented 2 years ago

There was another error in the 4.6.0 version that wouldn't let me start grip itself. I just upgraded the latest version (at moment of this comment, 4.6.1) that was released today and seems to be working fine. I'll close this issue.