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

If <br/> encountered on its own on a line put a backslash on the end of the previous line #24

Closed
MartinPacker opened this issue Dec 15, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@MartinPacker
Copy link
Owner

This would be a convenience.

Consider

* Here is a bullet point \
<br/>
* Here is another bullet point

It would be nice not to have to put that backslash in. Because I might add another bullet point line in before the <br/> line.

This could be done in mdpre - because it's not strictly how Markdown does it.

One wrinkle: It would be slightly more useful to allow multiple breaks on that line, not just one. Should be equally doable.

@MartinPacker MartinPacker added the enhancement New feature or request label Dec 15, 2023
@MartinPacker
Copy link
Owner Author

I looked at the code. This is feasible but it would require reworking the code to buffer the data in memory before writing the whole lot out. Fortunately, I/O is sufficiently abstracted that this ought to be possible.

I can't imagine a use case where the data to be written is so huge that buffering the output in its entirety would be a problem. (Even on the smallest (1GB) Raspberry Pi, for instance.)

Will investigate some more and, perhaps, protototype.

@MartinPacker
Copy link
Owner Author

Turned out to be a good deal simpler than that. Released as v0.6.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant