### Bug description

```md


## Example

I'm going to pull in some dates calculated after this markdown block with Observable.

This works fine:

* Begin date: ${the_dates[0]}
* End date ${the_dates[1]}

So does this:

**${the_dates[1]}**

But this does **not** work!

The range is between **${the_dates[0]}** and **${the_dates[1]}**. 

Yet this does!

The range is between **${the_dates[1]}** and ${the_dates[1]}.


```

Here is the python block that exists in the qmd file below all of this:

```{python}
import datetime

begin_date = datetime.datetime(2022,1,1).strftime("%B %-d, %Y")
end_date = datetime.datetime(2022,1,30).strftime("%B %-d, %Y")

ojs_define(the_dates = [begin_date,end_date])


```

This is running on OS X on a Mac Mini (m1) with Quarto 1.1.168.

It wants to me attach a file but if I drop over a .qmd file it says it's not supported. 😔 I made a [minimal repo here](https://github.com/astrowonk/quarto_bug) and attached a screenshot.

<img width="1058" alt="Screen Shot 2022-09-01 at 9 23 16 AM" src="https://user-images.githubusercontent.com/13702392/187924679-9f7bf192-4115-494c-9bb0-3b5346ed8a36.png">



### 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://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read the bug report.
- [X] 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.
cscheid
2022-09-01T13:23:25Z
astrowonk
bug wontfix
v1.3
closed
Markdown formatting around observable inline variables renders incorrectly.
https://github.com/quarto-dev/quarto-cli/issues/2252