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

Blank lines not shown #18

Open
RussellNS opened this issue Aug 23, 2021 · 2 comments
Open

Blank lines not shown #18

RussellNS opened this issue Aug 23, 2021 · 2 comments

Comments

@RussellNS
Copy link

When creating a markdown file with extra blank lines, the blank lines are not shown on the Welcome app.

Here's a screenshot of a sample md file in Nextcloud:

      image

Here's a screenshot of the Welcome app (v0.0.5):

      image

As a workaround, I've been able to get around this by manually typing in <br> in the file, like this:

      image

Thank you.

@julien-nc
Copy link
Member

Multiple problems are causing this issue:

  • Nextcloud Text trims the new lines, any number of new lines will be replaced by 2
  • The Markdown parser considers multiple new lines as a single one (so even adding new lines in the .md file with another editor won't work)

We can't preprocess the file content and replace \n\n by <br> because we never know if it means 2 new lines (other editor) or just one (NC Text).

It seems your workaround is the way to go.

@kyteinsky
Copy link
Contributor

@RussellNS
<br> tag does not work for me now but &nbsp; does. You can use this as a line break in your files.

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

3 participants