LeNPaul / Lagrange

A minimalist Jekyll theme for running a personal blog powered by Jekyll and GitHub Pages
https://lenpaul.github.io/Lagrange/
MIT License
682 stars 661 forks source link

Adding workaround to horizontal overflow code #57

Closed DuckSoft closed 5 years ago

DuckSoft commented 5 years ago

Sometimes the code is too long to fit in a code box, where they just tend to break lines, destroying the original layout of code. This should fix the problem, though still a workaround.

The before and after:

Before ![before](https://user-images.githubusercontent.com/7822648/52179016-16e1df00-2810-11e9-996f-3636df248640.png)
After ![after](https://user-images.githubusercontent.com/7822648/52179019-23663780-2810-11e9-9cd2-1e8ca4acad0b.png)
LeNPaul commented 5 years ago

Hi there! Thanks for the excellent pull request, I agree that it looks better that way instead of text wrapping the code. I will merge and credit you in the README. Cheers!