### Bug description

When using the [Matlab kernel](https://github.com/Calysto/matlab_kernel) in a qmd file

``````
---
jupyter: matlab
---

```{matlab}
fprintf('First line\n')
fprintf('Second line\n')
fprintf('Third line ')
fprintf('in two parts\n')
```
``````

it appears in Quarto's HTML output as

![image](https://user-images.githubusercontent.com/1738353/227738522-f0be05da-eb85-4f1d-bba0-c4f42b3a976e.png)

though it should be like in Matlab itself:

![image](https://user-images.githubusercontent.com/1738353/227739222-4f1525c0-269c-43ba-bf22-b7f653f46f06.png)

The reason is that in the intermediate notebook, there are separate output cells:

``````
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "6a87d088",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "First line\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Second line\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Third line "
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "in two parts\n"
     ]
    }
   ],
   "source": [
    "fprintf('First line\\n')\n",
    "fprintf('Second line\\n')\n",
    "fprintf('Third line ')\n",
    "fprintf('in two parts\\n')"
   ]
  }
``````

If I have a code cell with the same contents in a regular Jupyter notebook, everything is fine:

![image](https://user-images.githubusercontent.com/1738353/227738717-686c1071-b6ab-475d-9c6a-2ae189a0814a.png)

The underlying code is

``````
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "First line\n",
      "Second line\n",
      "Third line in two parts\n"
     ]
    }
   ],
   "source": [
    "fprintf('First line\\n')\n",
    "fprintf('Second line\\n')\n",
    "fprintf('Third line ')\n",
    "fprintf('in two parts\\n')"
   ]
  },
``````

***

My system:
Debian GNU/Linux 11.6, kernel 5.10.0-21-amd64
MATLAB 9.13.0.2166757 (R2022b) Update 4

`quarto check`:

````

[✓] Checking Quarto installation......OK
      Version: 1.2.335
      Path: /opt/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.5 (Conda)
      Path: /home/ca/.conda/envs/std/bin/python
      Jupyter: 4.10.0
      Kernels: python3, matlab, matlab_connect

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.0.4
      Path: /usr/lib/R
      LibPaths:
        - /home/ca/.local/lib/R
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      rmarkdown: 2.11

[✓] Checking Knitr engine render......OK
````

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [x] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [x] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
2023-03-25T20:09:35Z
allefeld
bug upstream jupyter
v1.4
closed
output is split over several cells
https://github.com/quarto-dev/quarto-cli/issues/4968