The Wayback Machine - https://web.archive.org/web/20211228090857/https://github.com/MacDownApp/macdown/issues/1136
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

Add a line wrapping option for code blocks #1136

Open
ian-twilightcoder opened this issue Dec 30, 2019 · 1 comment
Open

Add a line wrapping option for code blocks #1136

ian-twilightcoder opened this issue Dec 30, 2019 · 1 comment

Comments

@ian-twilightcoder
Copy link

@ian-twilightcoder ian-twilightcoder commented Dec 30, 2019

I'd like there to be an option to have code blocks be line wrapped. Maybe a check box for it in Rendering -> "Syntax highlighted code block" next to "Show line numbers" etc.?

If I try hard enough I can dig through the css files in Contents/Resources/Prism/themes and change "white-space: pre;" to "white-space: pre-wrap;", but doing so breaks the code signature of the app. And that's not a very nice way to do it anyway.

@FranklinYu
Copy link
Member

@FranklinYu FranklinYu commented Jan 2, 2020

doing so breaks the code signature of the app

I don’t think we currently have code signature (in macOS flavor) anyway… The main problem (I guess) would be your modification being overwritten during upgrade.

This is nice and PR welcome. I don’t have time for it recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants