Skip to content

Bug{AI Chat]: AI copies markdown syntax into code files when outputting code blocks #161

@pluuto19

Description

@pluuto19

When the AI generates code, it outputs it using markdown formatting (e.g., triple backticks). However, when applying the generated code, the markdown syntax itself is included, causing invalid syntax.
The markdown sytanx is shown in AI output as well as when the code snippet is applied.

To Reproduce

  • Ask the AI assistant to generate a code snippet.
  • Observer that the output in AI Chat will sometimes include markdown formatting.
  • Apply the generated code into an empty file.
  • Observe that markdown formatting is included in the file contents.

Expected behavior: Only raw code should be copied or inserted into files, without markdown or formatting characters.

OS: Windows 10
Browser: Chrome
Version: 141.0.7390.123 (Official Build) (64-bit)

Image
Untitled.video.-.Made.with.Clipchamp.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions