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

Options to weather edit md text (source) or edit as a preview md file #939

Closed
brunoschroeder opened this issue Jul 21, 2020 · 6 comments
Closed
Labels
enhancement New feature or request

Comments

@brunoschroeder
Copy link

brunoschroeder commented Jul 21, 2020

I am a terminal/vim user who loves syntax highlighting my md files, but I am NOT worried how they will eventually be previewed, as far as the files text (source) are kept the way I left them, last time I saw them in vim.

Issue/Bug:
When opening an md file on my iOs next cloud app, the file is processed and a lot of it is changed. Its text suffers many changes without any user confirmation!
(annoying example - lines that dont end with many spaces are transformed into one single line, because markdown interprets it as a long line when it is not the intention)

Needed Feature:
Please allow the iOs App user edit an md file as pure text or as a processed note - this is the beauty of markdown, and this is why we fled from html, latex or all wierd formats and went for markdown in the first place.

My current ridiculous workaround:
All .md files are .md.txt files, and my vim knows .md.txt should have markdown syntax highlight.
By the way this is the shenanigans I have to do with yaml files.
I hope I am helping nextcloud experience to get better. Would love to help you guys with all I can!

@brunoschroeder brunoschroeder added the enhancement New feature or request label Jul 21, 2020
@DanScharon
Copy link

yes, this would help our users tremendously who miss the old markdown editor app. CodiMD shows how this can be done.

@juliusknorr
Copy link
Member

Duplicate of #439 and #123, see #123 (comment) for some details on why this is a technical limitation. In general this the primary focus of the text app is rich text editing.

@DanScharon
Copy link

@juliushaertl I understand the primary focus of the text app. But most of us are looking for a way to offer both methods to our users, richt text editing and the markdown editor app.
In an ideal scenario I would have the text app as the default and install files_markdown app in addition to that, which could then be started optionally via the context menu ("Edit with Markdown editor"). But files_markdown depends on the old files_texteditor which in turn conflicts with text. And so the cat bites its own tail :-\

@juliusknorr
Copy link
Member

Yes, I see the point there. This is also why we released https://apps.nextcloud.com/apps/files_texteditor to the app store for Nextcloud 18+ and it should stil work fine with files_markdown even if text is enabled.

@brunoschroeder
Copy link
Author

Please do NOT close this.

This used to work! We used to be able to edit our markdowns as text.

It is NOT okay to change markdown sources when rendering it/changing it without any user conset.

The user uploads a file to NextCloud, tries to edit it, and destroys his/her work. This is not a good experience, at least a warning sign telling the user to keep his file/backup it otherwise NextCloud will completely alter it.

@DanScharon
Copy link

Yes, I see the point there. This is also why we released https://apps.nextcloud.com/apps/files_texteditor to the app store for Nextcloud 18+ and it should stil work fine with files_markdown even if text is enabled.

wow, great! I can confirm that this works and doesn't conflict with textanymore!

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

No branches or pull requests

3 participants