### Bug description

I tried the Docusaurus format with Quarto 1.3 and noticed that quite a few features are no longer working.

- `code-fold: true` does not work
- YAML front matter is not output to .md files
- If a call out block is included, rendering will fail

I tested with quarto cli 1.3.306 and create-docusaurus@2.4.0 on Linux (Debian or Ubuntu)

```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: 1.3.306
      Path: /opt/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.9.2
      Path: /usr/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

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

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

I get an error when I add the following qmd file to the Docusaurus sample project and run `quarto preview`.

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

:::{.callout-note}

This is callout

:::
````

```sh
$ quarto preview
Preparing to preview
[1/1] docs/test.qmd
Error running filter /opt/quarto/share/filters/main.lua:
Inline, list of Inlines, or string expected, got nil
        while retrieving function argument content
        while retrieving arguments for function Header
stack traceback:
        ...share/extensions/quarto/docusaurus/docusaurus_writer.lua:73: in function <...share/extensions/quarto/docusaurus/docusaurus_writer.lua:70>
        (...tail calls...)
        /opt/quarto/share/filters/main.lua:71: in function </opt/quarto/share/filters/main.lua:70>
        (...tail calls...)
        [C]: in ?
        [C]: in method 'walk'
        /opt/quarto/share/filters/main.lua:171: in function 'run_emulated_filter'
        ...share/extensions/quarto/docusaurus/docusaurus_writer.lua:49: in field 'handle'
        /opt/quarto/share/filters/main.lua:742: in function </opt/quarto/share/filters/main.lua:739>
        [C]: in ?
        [C]: in method 'walk'
        /opt/quarto/share/filters/main.lua:4116: in function </opt/quarto/share/filters/main.lua:4114>
        [C]: in ?
        [C]: in method 'walk'
        /opt/quarto/share/filters/main.lua:171: in function 'run_emulated_filter'
        /opt/quarto/share/filters/main.lua:449: in local 'callback'
        /opt/quarto/share/filters/main.lua:454: in upvalue 'run_emulated_filter_chain'
        /opt/quarto/share/filters/main.lua:495: in function </opt/quarto/share/filters/main.lua:476>
stack traceback:
        /opt/quarto/share/filters/main.lua:171: in function 'run_emulated_filter'
        ...share/extensions/quarto/docusaurus/docusaurus_writer.lua:49: in field 'handle'
        /opt/quarto/share/filters/main.lua:742: in function </opt/quarto/share/filters/main.lua:739>
        [C]: in ?
        [C]: in method 'walk'
        /opt/quarto/share/filters/main.lua:4116: in function </opt/quarto/share/filters/main.lua:4114>
        [C]: in ?
        [C]: in method 'walk'
        /opt/quarto/share/filters/main.lua:171: in function 'run_emulated_filter'
        /opt/quarto/share/filters/main.lua:449: in local 'callback'
        /opt/quarto/share/filters/main.lua:454: in upvalue 'run_emulated_filter_chain'
        /opt/quarto/share/filters/main.lua:495: in function </opt/quarto/share/filters/main.lua:476>
stack traceback:
        /opt/quarto/share/filters/main.lua:4116: in function </opt/quarto/share/filters/main.lua:4114>
        [C]: in ?
        [C]: in method 'walk'
        /opt/quarto/share/filters/main.lua:171: in function 'run_emulated_filter'
        /opt/quarto/share/filters/main.lua:449: in local 'callback'
        /opt/quarto/share/filters/main.lua:454: in upvalue 'run_emulated_filter_chain'
        /opt/quarto/share/filters/main.lua:495: in function </opt/quarto/share/filters/main.lua:476>
stack traceback:
        /opt/quarto/share/filters/main.lua:171: in function 'run_emulated_filter'
        /opt/quarto/share/filters/main.lua:449: in local 'callback'
        /opt/quarto/share/filters/main.lua:454: in upvalue 'run_emulated_filter_chain'
        /opt/quarto/share/filters/main.lua:495: in function </opt/quarto/share/filters/main.lua:476>
```

The following qmd files are converted to an empty md file.

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

I think this is a serious regression and I recommend adding Docusaurus format tests to this repository. (Docusaurus integration is really great!)

### 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-04T11:12:27Z
eitsupi
bug regression docusaurus
v1.3
closed
Docusaurus format of 1.3 rc seems broken
https://github.com/quarto-dev/quarto-cli/issues/5079