Skip to content

Inline expressions within triple-backticks within HTML blocks are not parsed correctly #1435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mbostock opened this issue Jun 6, 2024 · 1 comment
Assignees
Labels
bug Something isn’t working

Comments

@mbostock
Copy link
Member

mbostock commented Jun 6, 2024

Here, the backticks are interpreted literally because they are inside an HTML block, and hence the inline expression should be allowed.

<div>
  ```
  ${1 + 2}
  ```
</div>
@mbostock mbostock added the bug Something isn’t working label Jun 6, 2024
@mbostock mbostock self-assigned this Jun 6, 2024
@mbostock
Copy link
Member Author

mbostock commented Jun 6, 2024

Fixed in #1438.

@mbostock mbostock closed this as completed Jun 6, 2024
mbostock added a commit that referenced this issue Jun 7, 2024
* test setext #1436.

* test inline expression within triple backtick within HTML #1435.

* test inline expressions within indented lines #1434

* test inline expressions following literal backticks #1433

* test inline expressions within lists with backticks #1437

* test SVG placeholder #1415

* only <observablehq-loading> in HTML

---------

Co-authored-by: Mike Bostock <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

No branches or pull requests

1 participant