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

Lone newlines not interpreted as space #54

Open
sidju opened this issue Nov 10, 2023 · 1 comment
Open

Lone newlines not interpreted as space #54

sidju opened this issue Nov 10, 2023 · 1 comment

Comments

@sidju
Copy link

sidju commented Nov 10, 2023

Commonly in markdown a single newline is interpreted as space (and often indentation on the next line ignored). This is to allow keeping one's markdown source limited to 80 columns without limiting the width it can be printed as. Instead two consecutive newlines are treated as a new paragraph.

As I have 80 column markdown source and would like to be able to print it wider than that I quite miss this feature.

From a quick look at your codebase it is either that a user will need to modify their input markdown before giving it into either of MadView or TextView (the workaround I'll be using for now) or the library can handle it when splitting the markdown string into lines. I'll see if I can throw together a suggestion for how to do this.

@sidju
Copy link
Author

sidju commented Nov 11, 2023

#55

In case someone else comes here. We have communicated out of band and this is the PR for a md aware joiner, which may be plugged in somewhere or may be just exported for library users to run if they wish.

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

1 participant