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

Tables are not displayed correctly in Markdown files and this gets synchronized back to Clients if the file is edited #1524

Closed
claell opened this issue Mar 12, 2021 · 4 comments
Labels

Comments

@claell
Copy link

claell commented Mar 12, 2021

I assume that this is the standard text editor app that is used by default when editing text filed (like Markdown) in nextcloud; the one described here under a different name: https://nextcloud.com/blog/nextcloud-introduces-collaborative-rich-text-editor/.

Steps to reproduce

  1. Upload a Markdown document containing a table

Expected behaviour

Either render the table correctly or render the text generating the table correctly

Actual behaviour

Line breaks for the text rendering the table are not rendered online (probably because the table is considered text and the Markdown syntax ignores single line breaks when rendering normal text)

Server configuration

Operating system:

Web server:

Database:

PHP version:

Nextcloud version: (see Nextcloud admin page)

Where did you install Nextcloud from:

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or

Insert your config.php content here
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Client configuration

Browser:

Operating system:

Logs

Nextcloud log (data/owncloud.log)

Insert your Nextcloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@claell
Copy link
Author

claell commented Mar 13, 2021

Unfortunately this problem is even worse. When editing the file online with the editor, the line breaks are removed from the file.

Setup:

  • Create a Markdown file with tables on your Desktop (Windows if that matters) and synchronize it to the Cloud.
  • View the file online (one can now observe that line breaks for the table are not displayed correctly)
  • Edit the file online (doesn't matter where, I changed something many lines above the table)
  • The file gets synchronized back to the Client
  • Now the file on the client also lacks line breaks for the table

Example:

| Heading | Test | Heading | Test |
| --- | :--- | --- | --- |
| Content | | | |
| Content | | | |
| Content | Test | Content | Test |

gets turned into

| Heading | Test | Heading | Test | | --- | :--- | --- | --- | | Content | | | | | Content | | | | | Content | Test | Content | Test |

@claell claell changed the title Tables are not rendered correctly in Markdown files Tables are not displayed correctly in Markdown files and this gets synchronized back to Clients if the file is edited Mar 13, 2021
@claell claell transferred this issue from nextcloud/files_texteditor Mar 13, 2021
@claell
Copy link
Author

claell commented Mar 13, 2021

Duplicate of #772

@claell claell marked this as a duplicate of #772 Mar 13, 2021
@claell
Copy link
Author

claell commented Mar 13, 2021

Apparently a duplicate. I had filed this for the wrong text editor app at first and only now found the correct one that already has an issue for this.

@claell claell closed this as completed Mar 13, 2021
@claell
Copy link
Author

claell commented Mar 13, 2021

Duplicate of #593

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

No branches or pull requests

1 participant