### Bug description

When the following qmd file is rendered in the Docusaurus project, the first callout block is not rendered correctly.

````qmd
---
title: foo
---

## test

::::{.panel-tabset}

### Not work

:::{.callout-important}

This is important

:::

foo

### Work

bar

:::{.callout-important}

This is important

:::

::::

````

It seems that a blank line is required between `<TabItem value="Not work">` and `:::important`.

````md
---
title: foo
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

## test {#test}

<Tabs>
<TabItem value="Not work">
:::important

This is important

:::

foo

</TabItem>
<TabItem value="Work">

bar

:::important

This is important

:::
</TabItem>
</Tabs>

````

![image](https://user-images.githubusercontent.com/50911393/230131895-b5ef8df9-98f6-4fea-a066-28bbc14deafb.png)

I tested it with 1.2 and the edge unreleased version on Debian Linux.

```sh
$ quarto check

[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 99.9.9
      Path: /tmp/quarto-cli/package/dist/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.9.2
      Path: /usr/bin/python3
      Jupyter: 5.3.0
      Kernels: python3

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

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
```

### 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.
cscheid
2023-04-05T15:42:37Z
eitsupi
bug docusaurus
v1.3
closed
[Docusaurus] Callout block placed at the top of the tab item does not work
https://github.com/quarto-dev/quarto-cli/issues/5103