Reported by @night panther
Bug Report: R Markdown (and quarto) code in Chat GPT output is garbled and unusable
`Steps to Reproduce`
Issue this prompt
Write an R Markdown script that outputs `Hello world!` and then `Howdy partner!` in two different cells, with a comment before each cell saying `Just a test`. Make sure you produce one piece of code only, ready to copy-and-paste into a file open in my text editor.
`Expected Result`
title: "Hello World Example"
output: html_document
<!-- Just a test -->
print("Hello world!")
<!-- Just a test -->
print("Howdy partner!")
`Actual Result`
One markdown piece of code
<!-- Just a test -->
```{r}
cat("Hello world!")
followed by one "Writing" piece of text
cat("Howdy partner!")
followed by an empty piece of code.
`Environment`
Ubuntu 24.04, ChatGPT 5.1 (auto), Brave 1.84.141 (Official Build) (64-bit)