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 Block rendering shows additional newlines if code block is indented too much #89

Open
jayb-g opened this issue Aug 17, 2023 · 2 comments

Comments

@jayb-g
Copy link

jayb-g commented Aug 17, 2023

Example:

5 Indents - Markdown(from sublime text):
Screenshot from 2023-08-17 17-59-46

Rendered by mdless:
Screenshot from 2023-08-17 18-00-18

1 indent, same code:
Screenshot from 2023-08-17 18-02-51

Rendered by mdless:
Screenshot from 2023-08-17 18-02-32

Expected behavior is that the last screenshot above is how it should render regardless of number of indents.

I have a feeling that it might be related to #88, although both the above tests are done with full screen terminal only.

@ttscoff
Copy link
Owner

ttscoff commented Aug 17, 2023 via email

@jayb-g
Copy link
Author

jayb-g commented Aug 21, 2023

@ttscoff
I think the problem is that the tool takes terminal width as default wrap width. The code block should be rendered indented appropriately and as you mentioned, shouldn't leak into next line.

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