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

Line breaks disappear when edditing text after adding from template. #13

Open
sptcguy opened this issue Jan 21, 2024 · 2 comments
Open

Comments

@sptcguy
Copy link

sptcguy commented Jan 21, 2024

This app is awesome! Thank you for your work!

TL;DR: The app seems to not respect line breaks. I'm not sure if this is an issue with Nextcloud's rich text editor or this app.

Nextcloud Version: 27.1.4
App Version: 1.0.4

I have a template that looks like the following

What is the bug/problem?

What is the expected behavior?

Screenshots?

When I implement the template in a rich text field (i.e. a deck card description or a .md file) and start typing the, the line breaks disappear and condense the text down to one line. See video below:

Screencast.from.01-21-2024.03.22.18.PM.webm
@sptcguy
Copy link
Author

sptcguy commented Jan 21, 2024

Some further digging reveals that it's likely due to an incompatibility with the markdown editor.

Each separate line needs to be encapsulated in a "paragraph-content" div. See screenshots:

How the template text is inserted from the smart picker:
Screenshot from 2024-01-21 15-47-12

Here's how the markdown editor handles line breaks:
Screenshot from 2024-01-21 15-48-42

@kyteinsky
Copy link
Contributor

Hello, it seems to be an issue with the text app. See the linked issue.
If they say this app should format the text in some way, we can proceed with the fix here.

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

2 participants