-
Notifications
You must be signed in to change notification settings - Fork 195
Formatting of newlines in gitbook #805
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
Comments
Maybe this was a bug introduced in Gitbook, this seems like a pretty noticeable change, but I could not find a record of it at https://gitbook.com/docs/changelog with a quick inspection. |
@spier have you tried reaching out to their support? |
Yes. Their Support says that nothing was changed in their side. I am reasonably sure that that is not true but I cannot really prove it. Even proving it would not help me. Rather we have to find a way to make the new rendering logic of gitbook work for us. Or switch to an entirely different solution but they would be a lot more work. |
Not sure why I'm going through this rabbit hole instead of working on my to-do list, but hey sometimes that happens 😄 .
I inspected the page: ![]() They are conforming with Common Mark. The browser should be rendering the soft breaks as a spaces. P.S.: While searching for this I learned the term "Semantic Line Breaks": |
Great debugging @dellagustin-sap . Thank you! I had approached it from the user perspective first, and compared the current rendering with older version from waybackmachine. e.g. for the Core Team pattern: current and old (2025-01-24) I will point gitbook Support to this conversation here. Maybe it helps them to debug the issue on their end. |
Uh oh!
There was an error while loading. Please reload this page.
gitbook is the tool that we use to host https://patterns.innersourcecommons.org.
gitbook has (recently) changed the way that newline characters (
\n
) in our markdown files are rendered.Previously a single newline character did not generate a line break.
That meant that we could format our pattern files like below to allow for easier line-based commenting when reviewing patterns.
Recently gitbook made change in this rendering logic. Now such text in markdown is rendered exactly as shown i.e. each newline in the markdown also leads to a line break in the rendered HTML. This does not look great. See screenshot below.
The text was updated successfully, but these errors were encountered: