Skip to content

Markdown READMEs with hard line breaks aren't reflowed and look slightly ugly #11434

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

Closed
2 of 7 tasks
thombles opened this issue May 16, 2020 · 2 comments
Closed
2 of 7 tasks

Comments

@thombles
Copy link

Description

If you have a markdown file that is wrapped to 80 characters then those lines are not reflowed. In the case of regular text this just looks a bit ragged, however if there is significant markup such as an embedded URL then it really messes with the flow of the text.

Expected behaviour: Lines separated by a single line break in the markdown source would be kept on the same line in HTML. You would need to add two spaces to the end of the line to force a line break.

Actual behaviour: Line breaks are passed through directly.

Screenshots

Screenshot_20200516_213704

@zeripath
Copy link
Contributor

zeripath commented May 16, 2020

See: https://docs.gitea.io/en-us/config-cheat-sheet/#markdown-markdown

[markdown]
ENABLE_HARD_LINE_BREAK = false

@thombles
Copy link
Author

Aha thanks very much, that works great! It didn't occur to me that it might be intentional.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants