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

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

Open
jancborchardt opened this issue Oct 30, 2024 · 2 comments
Labels
1. to develop bug Something isn't working good first issue Good for newcomers

Comments

@jancborchardt
Copy link
Member

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:

  • Nextcloud version: Current daily server
@jancborchardt jancborchardt added the bug Something isn't working label Oct 30, 2024
@jancborchardt jancborchardt moved this to 👓 Design review in 🖍 Design team Oct 30, 2024
@jancborchardt
Copy link
Member Author

@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
Copy link
Member

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

const isMarkdown = hasMarkdownSyntax(link) && isValidMarkdown(link)

Ref #4784

@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Nov 14, 2024
@jancborchardt jancborchardt moved this from 👓 Design review to 🏗️ At engineering in 🖍 Design team Nov 14, 2024
@juliusknorr juliusknorr moved this from 🧭 Planning evaluation (don't pick) to 📄 To do (~10 entries) in 📝 Office team Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop bug Something isn't working good first issue Good for newcomers
Projects
Status: 📄 To do (~10 entries)
Status: 🏗️ At engineering
Development

No branches or pull requests

2 participants