nextcloud / nextcloud/assistant
Syntax highlighting in Chat
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 88
- Forks
- 43
- Avg merge
- 18h 49m
- Merged PRs (30d)
- 3
Description
Describe the feature you'd like to request
Markdown has syntax highlighting features like
```php
<the code goes here>
```
This is working in other apps like notes. However, this does not work in assistent chats sessions. The same applies for tables.
BTW: to force your AI assistent to always use that, just add Enclose every code example in triple back–ticks with syntax highlighting. to the Chat User Instructions for Chat Completions.
Describe the solution you'd like
Use the same mark down interpreter throughout all components to have the same feature set everywhere
Describe alternatives you've considered
none, sorry.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the chat-session rendering entry point and the Markdown interpreter used there, then compare it with the renderer used in Notes. Check how fenced PHP code blocks and tables are parsed and displayed in chat. Done means both Markdown features render consistently across the affected components, with existing behavior preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, markdown
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100