-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frontmatter containing
$1
is correctly substituted
Without this change, the script itself would be inserted into the metadata string Before: ```svelte <script·context="module"> export const metadata = {"price":"<script·context="module">0"}; const {·price·} = metadata; </script> ``` After: <script context="module"> export const metadata = {"price":"$10"}; const { price } = metadata; </script>
- Loading branch information
Showing
3 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/mdsvex/test/_fixtures/hybrid/input/dollar-one-in-frontmatter.svx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
price: '$10' | ||
--- | ||
<script context="module"> | ||
</script> |
4 changes: 4 additions & 0 deletions
4
packages/mdsvex/test/_fixtures/hybrid/output/dollar-one-in-frontmatter.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<script context="module"> | ||
export const metadata = {"price":"$10"}; | ||
const { price } = metadata; | ||
</script> |