You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When editing a Markdown cell inside nbterm, I can insert line breaks so that the content fits on screen.
However, when viewing a Markdown cell, text wrapping always cuts off a portion of the text, as long as it overflows. This is independent of the width of the terminal emulator: resizing it does not help.
On a related note, Markdown headers, which are center-aligned, are often cut off as well.
Using Gnome Terminal on Ubuntu 22.04, and Python 3.10.4.
The text was updated successfully, but these errors were encountered:
Thanks for reporting @jjeffrey.
nbterm relies on Rich for markdown rendering. I don't know if it's possible to configure it so that it wraps text.
Do you want to look at it and open a PR? That would be great.
I used rich to render markdown in euporie prior to v1.4.0, but I now use my own renderer based on markdown-it-py (so I can support tables, LaTeX, images, etc. in markdown).
To get rich to wrap the markdown, you'll need to set the max_width on the rich Console when rendering the output here. You can see how this was done in euporie here.
When editing a Markdown cell inside
nbterm
, I can insert line breaks so that the content fits on screen.However, when viewing a Markdown cell, text wrapping always cuts off a portion of the text, as long as it overflows. This is independent of the width of the terminal emulator: resizing it does not help.
On a related note, Markdown headers, which are center-aligned, are often cut off as well.
Using Gnome Terminal on Ubuntu 22.04, and Python 3.10.4.
The text was updated successfully, but these errors were encountered: