# Markdown in NextCloud

**URL:** https://forum.meet.coop/t/markdown-in-nextcloud/992
**Category:** Fault reporting
**Tags:** member-ops, time-now, tech, platform-space
**Created:** [28 April 2022 10:24 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992 "2022-04-28T10:24:51Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![mikemh](https://forum.meet.coop/user_avatar/forum.meet.coop/mikemh/32/358_2.png) [@mikemh](https://forum.meet.coop/u/mikemh)
#### Post date: [28 April 2022 10:24 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/1 "2022-04-28T10:24:51Z")

</div>

The markdown editor in the NextCloud web interface very often fails to save, and sits continually on ‘Saving’. This has been occurring for weeks and it has become totally unreliable as a way of editing documents… Please @chris can this be fixed?

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [29 April 2022 11:36 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/2 "2022-04-29T11:36:41Z")

</div>

Hi @mikemh this was raised on a Webarchitects support ticket a while ago and I upgraded Nextcloud and the Text app at the time and also changed the way cron was configured, I’ve updated it again and can look at this some more next week if it is still an issue, I’m currently at [this event](https://community.coops.tech/t/workers-co-op-weekend-2022/3062) so I’m afraid I don’t have time for an in-depth look at it right now.

---

<div class="post-metadata">

### Author: ![mikemh](https://forum.meet.coop/user_avatar/forum.meet.coop/mikemh/32/358_2.png) [@mikemh](https://forum.meet.coop/u/mikemh)
#### Post date: [29 April 2022 11:50 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/3 "2022-04-29T11:50:15Z")

</div>

Great `chris thank you. An hour ago some glitches did still seem to be occurring. Some in-depth next week would be very reassuring. Have a good day.

---

<div class="post-metadata">

### Author: ![wouter](https://forum.meet.coop/user_avatar/forum.meet.coop/wouter/32/318_2.png) [@wouter](https://forum.meet.coop/u/wouter)
#### Post date: [17 May 2022 11:32 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/4 "2022-05-17T11:32:35Z")

</div>

hi @chris just to let you know that the NextCloud text documents, i.e. the markdown texts, aren’t still saving adequately. Would be good if you could check on that. Thanks.

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [17 May 2022 14:25 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/5 "2022-05-17T14:25:45Z")

</div>

I’ll try and get to the bottom of this problem this week.

---

<div class="post-metadata">

### Author: ![mikemh](https://forum.meet.coop/user_avatar/forum.meet.coop/mikemh/32/358_2.png) [@mikemh](https://forum.meet.coop/u/mikemh)
#### Post date: [17 May 2022 17:13 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/6 "2022-05-17T17:13:24Z")

</div>

The sign that the trouble is occurring seems to be a notification, very fleeting, that ‘The changes could not be sent’. Meanwhile, the page continues to promise ‘Saving’. But doesn’t.

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [18 May 2022 16:55 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/7 "2022-05-18T16:55:22Z")

</div>

On the settings overview page there was this message:

> The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply `opcache.interned_strings_buffer` to your PHP configuration with a value higher than `8`.

So I have upped that to 64 and we now have _“All checks passed.”_

I agree that there is a problem with the markdown editor I also get the:

> Changes could not be sent yet

And:

> Saving …

However it does appear to eventually display “Saved”.

There are no errors in the Apache or PHP-FPM or Nextcloud logs recorded when editing documents, so no clues regarding what is happening there…

I was assuming that this was the [Notes app](https://apps.nextcloud.com/apps/notes) so I have been looking at the [issues reported by others](https://github.com/nextcloud/notes/issues?q=is%3Aissue), however it isn’t installed, so I think this is the [Plain text editor](https://apps.nextcloud.com/apps/files_texteditor):

```bash
php occ app:list | grep -i text 
  - text: 3.4.1

```

However the installed version doesn’t correspond with the [released versions](https://github.com/nextcloud/files_texteditor/releases).

There is also a [Markdown Editor](https://apps.nextcloud.com/apps/files_markdown) installed:

```bash
php occ app:list | grep files_markdown
  - files_markdown: 2.3.6

```

And I have now installed the Notes app:

```bash
php occ app:list | grep notes         
  - notes: 4.3.1

```

And disabled the Text app:

```bash
php occ app:disable text
text 3.4.1 disabled

```

However after doing that the `.md` files prompt to be downloaded rather opening in a web editor, so I have enabled Text again – does anyone know how to make Notes or the Markdown Editor the default app for `.md` documents? It might be worth trying them to see if they are better – it is almost a year since [the last release of the Text app](https://github.com/nextcloud/files_texteditor/releases) (however perhaps we are running a version from another repo since the version we have is `3.4.1`?).

---

<div class="post-metadata">

### Author: ![mikemh](https://forum.meet.coop/user_avatar/forum.meet.coop/mikemh/32/358_2.png) [@mikemh](https://forum.meet.coop/u/mikemh)
#### Post date: [18 May 2022 17:02 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/8 "2022-05-18T17:02:59Z")

</div>

> [@chris](#):
>
> it does appear to eventually display “Saved”

I find that I need to have the same file open in my local markdown editor, via my local NextCloud folders, so that the sync eventually notices a clash between two versions simultabeously being edited, and asks whether I want to keep the local one or the server one. THEN it saves. But this isn’t tenable as a way of making NextCloud save online edits!

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [19 May 2022 13:50 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/9 "2022-05-19T13:50:12Z")

</div>

Trying to work out what Nextcloud app is being used and therefore where the issue list for it is…

```bash
php occ app:list | grep text
  - text: 3.4.1
grep "3.4.1" apps/text/appinfo/info.xml 
        <version>3.4.1</version>
grep -e "website" -e "bugs" -e "repository" apps/text/appinfo/info.xml 
        <website>https://github.com/nextcloud/text</website>
        <bugs>https://github.com/nextcloud/text/issues</bugs>
        <repository type="git">https://github.com/nextcloud/text.git</repository>

```

So it appear to be this app:

> **[GitHub - nextcloud/text: 📑 Collaborative document editing using Markdown](https://github.com/nextcloud/text)**
>
> 📑 Collaborative document editing using Markdown. Contribute to nextcloud/text development by creating an account on GitHub.

And they release versions based on Nextcloud version numbers:

> **[Tags · nextcloud/text](https://github.com/nextcloud/text/tags)**
>
> 📑 Collaborative document editing using Markdown. Contribute to nextcloud/text development by creating an account on GitHub.

And in January some work was done on the _“Saving”_ issue:

> <https://github.com/nextcloud/text/pull/1353>
>
> Some fixes from the design review in https://github.com/nextcloud/text/issues/10…75
> 
> Based on #1296 
> 
> \- Simplify save indicator to Saving/Saved
> \- Add some space to the menu bar so that button circles do no longer look cut off
> \- ~Add disabled styling for undo/redo buttons~ Needed to revert this since it had a major performance impact and requires more investigation
> \- Add improved indicator for active styling
> \- Show full menubar on public share links (where the talk sidebar overlapped before)
> \- Simplify wording
> \- Add spacing to color annotations

And there is a issue here regarding the problem @mikemh reported above regarding conflicts when editing via the file system / web interface:

> <https://github.com/nextcloud/text/issues/2388>
>
> \### ⚠️ This issue respects the following points: ⚠️
> 
> \- \[X\] This is a \*\*bug\*\*, no…t a question or a configuration/webserver/proxy issue.
> \- \[X\] This issue is \*\*not\*\* already reported on Github \_(I've searched it)\_.
> \- \[X\] Nextcloud Server \*\*is\*\* up to date. See \[Maintenance and Release Schedule\](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
> \- \[X\] I agree to follow Nextcloud's \[Code of Conduct\](https://nextcloud.com/contribute/code-of-conduct/).
> 
> \### Bug description
> 
> Offline edits of a shared text file (shared as non-editable) which are then synced are not updated in the in-browser view of the shared file
> 
> 
> \### Steps to reproduce
> 
> 1. create a text file in nextcloud
> 2. edit it with the in built-in text editor
> 3. share the next file via public link without allowing editing
> 4. sync the file using the desktop client
> 5. edit synced file offline
> 6. sync again
> 7. the shared document does not show the changes
> 8. open the file in the nextcloud text editor
> The warning appears:
> !\[image\](https://user-images.githubusercontent.com/5802846/168067392-73c55722-41a8-4823-9e3c-f1397f401d98.png)
> and I can choose "use current version" or "use saved version". 
> 9. Clicking "use saved version" updates the shared file
> 
> \### Expected behavior
> 
> Any changes to the file saved in the nextcloud are reflected in the shared file. The saved text file (i.e. the file that is in the nextcloud filesystem) is shown in the shared in-browser text file view, not any other version that may be in some cache of the nextcloud text editor (or somewhere else).
> 
> \### Installation method
> 
> Other
> 
> \### Operating system
> 
> Other
> 
> \### PHP engine version
> 
> Other
> 
> \### Web server
> 
> Other
> 
> \### Database engine version
> 
> \_No response\_
> 
> \### Is this bug present after an update or on a fresh install?
> 
> \_No response\_
> 
> \### Are you using the Nextcloud Server Encryption module?
> 
> \_No response\_
> 
> \### What user-backends are you using?
> 
> \- \[\] Default user-backend \_(database)\_
> \- \[\] LDAP/ Active Directory
> \- \[\] SSO - SAML
> \- \[\] Other
> 
> \### Configuration report
> 
> \_No response\_
> 
> \### List of activated Apps
> 
> \`\`\`shell
> I don't have access to the command-line
> \`\`\`
> 
> 
> \### Nextcloud Signing status
> 
> \_No response\_
> 
> \### Nextcloud Logs
> 
> \_No response\_
> 
> \### Additional info
> 
> hosted by webo.hosting

However I couldn’t find a issue that exactly matches the problem so I have opened one:

> <https://github.com/nextcloud/text/issues/2421>
>
> When editing a \`.md\` file this text is sometimes displayed:
> 
> \> Changes could n…ot be sent yet
> 
> However generally this appears:
> 
> \> Saving …
> 
> Occasionally it displays:
> 
> \> Saved
> 
> \*\*To Reproduce\*\*
> 
> Steps to reproduce the behavior:
> 1. Open or create \`.md\` file
> 3. Make a change, \_"Saving …"\_ is displayed
> 4. Click \_X\_ to close the file
> 5. Open the file and the text has been saved and \_"Saved"\_ is displayed
> 
> \*\*Expected behavior\*\*
> 
> I haven't been able to demonstrate that this causes any data loss however it is confusing for users who think that their changes haven't been saved and they might lose data.
> 
> \*\*Client details:\*\*
> - OS: Debian Bullseye
> - Browser: Mozilla/5.0 (X11; Linux x86\_64; rv:100.0) Gecko/20100101 Firefox/100.0
> 
> \*\*Text app version:\*\* 3.4.1
> 
> \*\*Operating system:\*\* Debian Bullseye
> 
> \*\*Web server:\*\* Apache/2.4.53 (Debian)
> 
> \*\*Database:\*\* mariadb Ver 15.1 Distrib 10.5.15-MariaDB, for debian-linux-gnu (x86\_64)
> 
> \*\*PHP version:\*\* PHP-FPM 7.4.28 
> 
> \*\*Nextcloud version:\*\* 
> 
> \`\`\`bash
> php occ status
> - installed: true
> - version: 23.0.4.1
> - versionstring: 23.0.4
> - edition: 
> - maintenance: false
> - needsDbUpgrade: false
> - productname: Nextcloud
> - extendedSupport: false
> \`\`\`
> 
> \#### Nextcloud log (data/nextcloud.log)
> 
> I have found no corresponding log entries
> 
> \#### Browser log
> 
> I have found no corresponding log entries (other that \`200\`'s)

Please feel free to add to this!

---

<div class="post-metadata">

### Author: ![wouter](https://forum.meet.coop/user_avatar/forum.meet.coop/wouter/32/318_2.png) [@wouter](https://forum.meet.coop/u/wouter)
#### Post date: [20 May 2022 14:16 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/10 "2022-05-20T14:16:10Z")

</div>

> [@chris](#):
>
> And I have now installed the Notes app:

I know Notes from another server; in combination with the Notes app on one’s mobile it can be a useful personal Note taking app, like for your grocery list or so 😉 But, as you found out I think, it must be the Text + MarkDown editor that do the work here.

I have no clue about the version numbers, are they not on the latest version?

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [20 May 2022 14:53 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/11 "2022-05-20T14:53:56Z")

</div>

> [@wouter](#):
>
> it must be the Text + MarkDown editor that do the work here

That is correct, it took me a while to work that out 🙄 .

> I have no clue about the version numbers, are they not on the latest version?

The server is running this version:

```bash
php occ app:list | grep -i text 
  - text: 3.4.1

```

I haven’t been able to loose data due to this issue, if you could add any further details to [the issue I raise for this](https://github.com/nextcloud/text/issues/2421) that would be appreciated.

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [19 July 2022 11:49 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/12 "2022-07-19T11:49:25Z")

</div>

This is to test that reply-by email is working…

And to note that I’m afraid that [the issue I raised for this at GitHub](https://github.com/nextcloud/text/issues/2421) has had no response, apart from a thumbs up from two people which indicates that we are not the only people that have found this problem.

If anyone here has a GitHub account and could add anything further to the issue that might help with it getting some attention…

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [16 November 2022 15:54 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/13 "2022-11-16T15:54:35Z")

</div>

The [issue at GitHub](https://github.com/nextcloud/text/issues/2421) was [closed today as completed](https://github.com/nextcloud/text/issues/2421#issuecomment-1317046770).

I have just upgraded the Nextcloud instance to the latest version, could someone check if this issue is solved and perhaps follow up on the GitHub issue if the problem persists (or here if you would rather not post to GitHub)?

---

<div class="post-metadata">

### Author: ![mikemh](https://forum.meet.coop/user_avatar/forum.meet.coop/mikemh/32/358_2.png) [@mikemh](https://forum.meet.coop/u/mikemh)
#### Post date: [17 November 2022 09:00 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/14 "2022-11-17T09:00:38Z")

</div>

Lovely @chris thanks. Can’t check right now but will do. 🙂

---

<div class="post-metadata">

### Author: ![mikemh](https://forum.meet.coop/user_avatar/forum.meet.coop/mikemh/32/358_2.png) [@mikemh](https://forum.meet.coop/u/mikemh)
#### Post date: [3 December 2022 13:04 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/15 "2022-12-03T13:04:31Z")

</div>

Sadly @chris the NextCloud Text/Markdown app seems once more to not be syncing reliably. I lost a work session yesterday bcos I hadn’t noticed that the page was endlessly ‘saving’ and not ‘saved’. Currently I’m editing locally.

Please would you check NextCloud for possible glitches? Thanks 🙂

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [3 December 2022 13:27 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/16 "2022-12-03T13:27:08Z")

</div>

@mikemh the [issue has been re-opened and marked as high priority](https://github.com/nextcloud/text/issues/2421#issuecomment-1323571151), however nothing appears to have happened since that was done…

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [27 March 2023 20:20 UTC](https://forum.meet.coop/t/markdown-in-nextcloud/992/17 "2023-03-27T20:20:56Z")

</div>

> [@chris](#):
>
> However I couldn’t find a issue that exactly matches the problem so I have opened one:

A “Save” button has been added:

> <https://github.com/nextcloud/text/issues/2421>
>
> When editing a \`.md\` file this text is sometimes displayed:
> 
> \> Changes could n…ot be sent yet
> 
> However generally this appears:
> 
> \> Saving …
> 
> Occasionally it displays:
> 
> \> Saved
> 
> \*\*To Reproduce\*\*
> 
> Steps to reproduce the behavior:
> 1. Open or create \`.md\` file
> 3. Make a change, \_"Saving …"\_ is displayed
> 4. Click \_X\_ to close the file
> 5. Open the file and the text has been saved and \_"Saved"\_ is displayed
> 
> \*\*Expected behavior\*\*
> 
> I haven't been able to demonstrate that this causes any data loss however it is confusing for users who think that their changes haven't been saved and they might lose data.
> 
> \*\*Client details:\*\*
> - OS: Debian Bullseye
> - Browser: Mozilla/5.0 (X11; Linux x86\_64; rv:100.0) Gecko/20100101 Firefox/100.0
> 
> \*\*Text app version:\*\* 3.4.1
> 
> \*\*Operating system:\*\* Debian Bullseye
> 
> \*\*Web server:\*\* Apache/2.4.53 (Debian)
> 
> \*\*Database:\*\* mariadb Ver 15.1 Distrib 10.5.15-MariaDB, for debian-linux-gnu (x86\_64)
> 
> \*\*PHP version:\*\* PHP-FPM 7.4.28 
> 
> \*\*Nextcloud version:\*\* 
> 
> \`\`\`bash
> php occ status
> - installed: true
> - version: 23.0.4.1
> - versionstring: 23.0.4
> - edition: 
> - maintenance: false
> - needsDbUpgrade: false
> - productname: Nextcloud
> - extendedSupport: false
> \`\`\`
> 
> \#### Nextcloud log (data/nextcloud.log)
> 
> I have found no corresponding log entries
> 
> \#### Browser log
> 
> I have found no corresponding log entries (other that \`200\`'s)

I’m not sure when it’ll be in a released version of the Nextcloud Text app.
