-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
Linebreak (METAKEY + RETURN) in Nextcloud (19.0.1) Text App creates backslash at line ends in rendered html pages #566
Comments
I'm afraid Nextcloud's Text app isn't supported due to a lot of other, even more severe issues (like removing YAML Front Matters). There are plans to improve the situation, however, in the meantime I recommend using a different text editor, like https://apps.nextcloud.com/apps/files_markdown or https://apps.nextcloud.com/apps/files_texteditor Besides: By the way: This issue should rather be in https://github.com/nextcloud/cms_pico, this repo is about "pure" Pico 😄 |
😄 Damn. I was scared like hell to open my first issue on github, mostly beeing afraid to post it at the wrong place (which I did) or write off-topic-spam (like I do now). Feel free to move it to the right repo. I guess I'm not able to transfer it, do I? Nevertheless your fix |
Unfortunately we can't transfer the issue there. But no worries, it's not that of a big deal 😄 Don't hesitate to open another issue if you have any question. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! 👍 |
As @daftmilk mentioned in this issue Linebreaks in Texteditor do not conform to Markdown-Syntax the Nextcloud Text app indicates line-breaks with a
"\"
in the end of a line. I used the nl2br twig (3.x) filter in the themesindex.twig
file, which creates a html<br />
tag, but leaves the"\"
character on line ends. Is there another Pico or Twig filter to replace the backslashs with a space or are changes in theconfig.yml
necessary? I tried to chain| nl2br
with| replace({"\\n":""})
but with no effort.The text was updated successfully, but these errors were encountered: