Skip to content

Commit

Permalink
Fix Could not parse expression with acorn error
Browse files Browse the repository at this point in the history
'{}' is interpreted as javascript by mdx, so curly brackets needs
escaping, either via '\{' '\}' or put it in code blocks.

https://mdxjs.com/docs/troubleshooting-mdx/#could-not-parse-expression-with-acorn-error
  • Loading branch information
edw-defang committed Jul 2, 2024
1 parent 4e177e6 commit ff09ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/generate-new-code-using-ai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Defang supports generating new project outlines using integration with an AI mod

In this tutorial we'll use the following prompt:

A basic service with 2 REST endpoints. The default endpoint will be for health check and should return a JSON object like this: { "status": "OK" }. The /echo endpoint will echo back all request parameters in the response.
A basic service with 2 REST endpoints. The default endpoint will be for health check and should return a JSON object like this: `{ "status": "OK" }`. The /echo endpoint will echo back all request parameters in the response.

## Step 1 - Use the CLI generate command
```text
Expand Down

0 comments on commit ff09ea3

Please sign in to comment.