### Bug description

Consider the following minimal working example:

``````
---
title: "MWE"
---

Text ${foo} text

```{ojs}
#| echo: false

foo = "bar";
```
``````

it raises

```
OJS parsing failed on line 6, column 1
SyntaxError: Unexpected character '#'
----- OJS Source:
#| echo: false
^

foo = "bar";

-----
```

If I add `engine: knitr` to the YAML header the example works.

### `quarto check` Output

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

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

[✓] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

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

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

### `quarto tools check` Output

```
[✓] Inspecting tools

Tool         Status            Installed     Latest  
chromium     Not installed     ---           869685  
tinytex      Not installed     ---           v2022.08
```

### Checklist

- [X] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?
- [X] included 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] documented the quarto version you're running, by pasting the output from running `quarto check` in the "Quarto Check Output" text area?
- [X] documented the version of the quarto tools you're running, by providing the output from running `quarto tools check` in the "Quarto Tools Check Output" text area?
- [X] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- [X] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
cscheid
2022-08-13T10:01:52Z
rgaiacs
bug
v1.2
closed
Observable raises "SyntaxError: Unexpected character" for execution options
https://github.com/quarto-dev/quarto-cli/issues/1856