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

Code snippets in .md files #29

Closed
freebuu opened this issue Jul 3, 2023 · 8 comments
Closed

Code snippets in .md files #29

freebuu opened this issue Jul 3, 2023 · 8 comments

Comments

@freebuu
Copy link

freebuu commented Jul 3, 2023

Hola!

I stuck in issue - when .md files contains code snippets like this

max@DESKTOP:~/DEV/test$ docker-compose exec php vendor/phpunit/phpunit/phpunit --testsuite Feature

it render with fixed width and in mobile devices view horizontal scroll appears.

Reproduce: add snippet above to blog post and check on mobile device.

I'm really poor with css and cannot solve this problem :(

@manuelernestog
Copy link
Owner

manuelernestog commented Jul 4, 2023

Hi @2618094. Thanks for the feedback. I'll take a look

@manuelernestog
Copy link
Owner

Hey man I just tested this and looks good.
image

This is my .md example code

image

@freebuu
Copy link
Author

freebuu commented Jul 4, 2023

@manuelernestog This is strange - i clone fresh repo and add this snippet

image image

@manuelernestog
Copy link
Owner

Hmmmm maybe this is some kind of incompatibility with Safari. Let me see if I find a way to run this on Linux.

Also, if you can install any other browser and try to replicate it, it will give me clue about if this is just an error on Safari.

@freebuu
Copy link
Author

freebuu commented Jul 6, 2023

Checked in Chrome (Version 114.0.5735.198 (Official Build) (x86_64)), same.
Checked twice:

And i see on your screen - you make it one line - ``` should be higher and lower the code for snippet render

image image

@manuelernestog
Copy link
Owner

Thanks for the feedback @2618094 I'll take a look 👍️

@manuelernestog
Copy link
Owner

@2618094 I already solved it, please try again and please let me know if it's ok to close the issue

@freebuu
Copy link
Author

freebuu commented Jul 10, 2023

@manuelernestog working! CSS is just magic :)
¡Muchas gracias!

@freebuu freebuu closed this as completed Jul 10, 2023
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