Skip to content

Commit

Permalink
test inline expressions following literal backticks #1433
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Jun 7, 2024
1 parent 7c4a36b commit 629dc98
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/input/inline-following-backticks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<code>```</code>

<pre>${`1`}</pre>
2 changes: 2 additions & 0 deletions test/output/inline-following-backticks.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<p><code>```</code></p>
<pre><observablehq-loading></observablehq-loading><!--:14381611:--></pre>
38 changes: 38 additions & 0 deletions test/output/inline-following-backticks.md.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"data": {},
"title": null,
"style": null,
"code": [
{
"id": "14381611",
"node": {
"body": {
"type": "TemplateLiteral",
"start": 0,
"end": 3,
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"start": 1,
"end": 2,
"value": {
"raw": "1",
"cooked": "1"
},
"tail": true
}
]
},
"declarations": null,
"references": [],
"files": [],
"imports": [],
"expression": true,
"async": false,
"inline": true,
"input": "`1`"
}
}
]
}

0 comments on commit 629dc98

Please sign in to comment.