-
Notifications
You must be signed in to change notification settings - Fork 94
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
Markdown files are corrupted #772
Comments
Just noticed in the README that the Text app advertises an:
This isn't true until the Text app preserves Markdown. Right now it's only safe to either:
|
This problem makes the Text Editor completely unusable for editing any markdown files. Example
Markdown Header after Editing:
|
Same issue here. I am trying to use Pico CMS app, which needs .md files to remain in a fixed layout, with clean and consistent YAML headers. The Text app messes with the YAML header's formatting, preventing Pico to render any page edited with Text. This is a big issue for me, as we will be a team of people collaborating on a website made with Pico CMS for Nextcloud, as developed in this issue: nextcloud/cms_pico#116 |
To refrain from the negative impetus in this issue's title, can we safely rename it to YAML frontmatter support and assign another of the labels, like feature: integration? It appears this is not an issue of the Text app alone, but stems from the wider ecosystem of unaligned Markdown implementations. Not even CommonMark 0.29 mentions frontmatter or YAML anywhere. It appears hard for me to consider this a bug, since the design documents nowhere state that the app supports a (YAML) frontmatter. |
Hi @almereyda and thanks for your comment. So yes, from the usability point of view, it is a bug. A crucial feature (on which some apps rely) has been removed. |
I have been bitten by this bug too. My solution was to change the extension to
This should prevent any data loss. |
@almereyda I'm happy to change the title. Do you have a suggestion? (edited to @ the right person, sorry!) This issue isn't limited to frontmatter. I don't use frontmatter and it affected me (example above). It clobbers a number of markdown constructs. |
Just to be clear: the issue isn't what markdown it supports. The issue is that it reformats markdown that it doesn't understand. No other Markdown editor (that I've used) does that. |
Indeed, I forgot to consider the case where decidedly formatted Markdown tables got distorted, as per the original posting. Either these two are one case of general support for higher-order grammars of Markdown, then I suggest a title like "Support for extended Markdown features broken". Else I would suggest to track the cases independently as:
|
@almereyda I respectfully disagree with your classification. Opening a preexisting file, making a change, and losing information (it's not mere presentation, it's structure) should be seen as data loss. It's not only a regression from the previous editor in term of features. |
@almereyda I'm not sure about your suggested title. I don't mind at all if this editor chooses not to support support any particular Markdown feature. That's A-OK. The problem is that it wrecks content that it doesn't understand. If we were to track them separately, maybe we'd open issues for the following?
And probably find a few others used in data science and publishing: https://rmarkdown.rstudio.com/authoring_pandoc_markdown.html%23raw-tex I'm happy to do it if you think that's the way to go. |
I'm unable to make a meaningful consideration at this point, and would
leave a decision about classification to the maintainers.
…On Wed, 29 Apr 2020 at 02:26, Scott Bronson ***@***.***> wrote:
@almereyda <https://github.com/almereyda> I'm not sure about your
suggested title. I don't mind at all if this editor chooses not to support
support any particular Markdown feature. That's A-OK. The problem is that
it wrecks content that it doesn't understand.
If we were to track them separately, maybe we'd open issues for the
following?
- frontmatter
- tables
- references
- line breaks
- setext headers
- line blocks
- definition lists
And probably find a few others used in data science and publishing:
https://rmarkdown.rstudio.com/authoring_pandoc_markdown.html%23raw-tex
I'm happy to do it if you think that's the way to go.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#772 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMRV7FDCVWKHOLU67W6KZDRO5X2JANCNFSM4MIAKUVA>
.
|
The old files_texteditor app is back on the App Store (https://apps.nextcloud.com/apps/files_texteditor), a rough workaround would be to use it (again) and files_markdown and not use Text for these type of files. |
@e-alfred thanks! 🙌 |
@e-alfred Thanks, I find back something closer than what I need. |
Have you tried the Markdown Editor ? (You need to install the previously mentioned files_texteditor) |
Yes exactly, and so I find back something closer than what I need ;) |
Nice to see plain markdown edit back, this new editor was a pita. |
I agree lunar-debian. This is a data loss issue! As such, shouldn't this be marked critical?! Even if the problem lies with un-standardized markup implementations, there has to be a way to mitigate this, lunar-debian had a good suggestion, although I would suggest an error with a brief explanation why it wasn't opened in rtf mode with unsupported features. We can't have data loss. |
The fundamental problem is that the new Text app is not really a markdown editor. It is a WYSIWYG document editor that happens to use MD syntax to store its documents. It does not respect the MD semantics in which files are text files, where every byte belongs to the user, and the MD syntax provides rendering advice and a readable structure to the unrendered text file itself. It seems like Text is being positioned as a Nextcloud analog to Google Docs. If that is the direction NC wants to take it, I think the most straightforward way to fix this is for Text documents to have their own mimetype/extension (e.g., As it stands, I am forced to disable the Text app in the two NC instances I administrate, because of the threat of corruption of actual To be honest, I would love to just have collaborative editing in the good ol' Plain text editor, and along with it, Markdown editor (which supports LaTeX math rendering!). I'm curious why collaborative editing would be any harder on files that are just strings of characters presented as strings of characters. (It's been done before/elsewhere, right?) |
Looks like this is a duplicate of #593. |
Thanks @sparagi for the hint, I'll mark it accordingly. |
Duplicate of #593 |
I stored my Markdown notes in Nextcloud. After making a few edits using the Nextcloud web interface, they've been ruined. I need to restore them from backup and try to remember the edits I made.
Is this behavior intentional?
For example, what used to be this:
Is now this:
Steps to Reproduce
Expected behaviour
These are text files. I'd expect my changes to be saved and the rest of the file to remain as it was.
Actual behaviour
The files are completely changed, top to bottom.
Server configuration detail
Operating system: Linux 5.4.10-x86_64-linode132 #1 SMP PREEMPT Thu Jan 9 21:17:12 UTC 2020 x86_64
Webserver: Apache/2.4.29 (Ubuntu) (apache2handler)
Database: mysql 5.7.29
PHP version:
7.2.24-0ubuntu0.18.04.3
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, apache2handler, mysqlnd, PDO, xml, apcu, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, igbinary, imagick, intl, json, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache
Nextcloud version: 18.0.3 - 18.0.3.0
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: unknown
Signing status
Array
(
)
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption:
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Client configuration
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15
Operating system: Macintosh
Logs
Web server error log
Nextcloud log
Browser log
Insert your browser log here, this could for example include:
The text was updated successfully, but these errors were encountered: