nextcloud / text

📑 Collaborative document editing using Markdown
GNU Affero General Public License v3.0
555 stars 91 forks source link

Text inserted from the Assistant is not formatted correctly but shows raw markdown #6573

Open jancborchardt opened 2 weeks ago

jancborchardt commented 2 weeks ago

Describe the bug See title

To Reproduce Steps to reproduce the behavior:

  1. Open a new text file
  2. Go to the Assistant functions on the right Image
  3. Generate a text
  4. Click "Insert"

Expected behavior The text should be properly formatted with headings (or bolding) and lists.

Screenshots Instead the raw markdown code is visible: Image

Server details:

jancborchardt commented 2 weeks ago

@mejo- @max-nextcloud @julien-nc not fully sure if this is a Text issue or Assistant issue, but since Assistant just gives over the plaintext, I assume it is a Text app issue?

juliusknorr commented 1 week ago

Should be text, we need to detect or always assume markdown like we do for smartpicker results:

https://github.com/nextcloud/text/blob/1d2f4cc4ad0c3a7a7fd4a93fd2478a84565c68eb/src/components/Suggestion/LinkPicker/suggestions.js#L91

Ref https://github.com/nextcloud/text/issues/4784