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

feature request: wrap long lines inside markdown code blocks #95

Open
timotheecour opened this issue May 16, 2021 · 2 comments
Open

feature request: wrap long lines inside markdown code blocks #95

timotheecour opened this issue May 16, 2021 · 2 comments

Comments

@timotheecour
Copy link

See linked issue for the problem description: https://stackoverflow.com/questions/41238148/how-to-line-wrap-long-lines-inside-markdown-code-blocks-in-githubgitlab/67544049#67544049

Given the number of upvotes, it's a commonly requested feature.

The goal is to wrap code blocks, eg:

some very long line; some very long line; some very long line; some very long line; some very long line; some very long line; some very long line; some very long line; some very long line; some very long line; 

See also https://github.com/yoheimuta/github-pre-utility which is relevant.

@bioXiaoheng
Copy link

bioXiaoheng commented Sep 7, 2021

Has this feature been added? Is there a (built-in?) way to wrap texts inside the code block now?

@slam-campup
Copy link

slam-campup commented May 3, 2024

Wrapping should work with any of the syntax highlighters that have wrap: true.

From the linguist comments:

# wrap                  - Boolean wrap to enable line wrapping (default: false)

For example the following should wrap:

```manpage
this is some log wrapping text this is some log wrapping text this is some log wrapping text this is some log wrapping text this is some log wrapping text 
``` 

However, none of the languages I have tried will wrap.

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

3 participants