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

Raw markdown editing #3570

Open
timotoots opened this issue Dec 13, 2022 · 7 comments
Open

Raw markdown editing #3570

timotoots opened this issue Dec 13, 2022 · 7 comments

Comments

@timotoots
Copy link

timotoots commented Dec 13, 2022

Is your feature request related to a problem? Please describe.
Sometimes markdown has non-standard elements that Text renders as it thinks is standard.

Describe the solution you'd like
A button "Edit raw" that would allow editing raw markdown.

Describe alternatives you've considered

Additional context

@timotoots timotoots added the enhancement New feature or request label Dec 13, 2022
@timotoots timotoots changed the title Markdown edit source Markdown "Edit raw" button Dec 13, 2022
@mejo-
Copy link
Member

mejo- commented Dec 14, 2022

Thanks for your report @timotoots.

I'm pretty sure that there is already an issue for tracking this feature, but I failed to find it now when searching for it 🤔

@mejo-
Copy link
Member

mejo- commented Dec 14, 2022

There's #123, #323 and #815, all closed. Shall we keep this issue open or re-open one of the earlier ones? @max-nextcloud @juliushaertl

@datenangebot
Copy link

I can not find a way to see and edit the raw file content within the editor. So we keep this issue open as feature request.

@juliusknorr
Copy link
Member

Yes, this is not implemented yet. A few thoughts as I think it might make sense to have this at some point, however it is not on our roadmap so far. Contributions for this would of course be very welcome.

  • We'd need a toggle for a preview next to the raw editor (also related to AsciiDoc support #3564)
  • We would need to limit the full editing session to either raw or rich text editing since otherwise the rich editor may change the content in an unexpected way if some users join with rich editing
  • Some open questions:
    • Would this be a user or per document setting?
    • What happens if a user prefers plain markdown but the document is currently opened by another user in rich text mode (or the other way round)

@juliusknorr juliusknorr changed the title Markdown "Edit raw" button Raw markdown editing Jun 29, 2023
@l-mb
Copy link

l-mb commented Jul 20, 2023

I see the issue if editing in collaborative mode. However, this would still be really useful.

To start with, even obtaining an exclusive lock when raw mode is activated by someone would be useful for repairing broken Markdown or inspecting what's going on. One can do it right now anyway (by opening the file in a synced directory), so having it in the web mode would just be more convenient.

@JL710
Copy link

JL710 commented Jul 8, 2024

The technical reasoning with collaborative editing sounds reasonable.
Wouldn't it be possible for the administrator to decide on a view (Or on a User or File Level)?
It could be a setting that the author of a file needs to decide when sharing a file.

@juliusknorr
Copy link
Member

Either on an instance wide admin defined level or file level would work, per user not as you could then have two users with different settings open the same file.

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

No branches or pull requests

6 participants