fix #1778
This commit is contained in:
parent
4c0cb47204
commit
c82ceff7eb
2 changed files with 8 additions and 1 deletions
5
.changeset/four-kids-melt.md
Normal file
5
.changeset/four-kids-melt.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Bug fix for Debug when passed JSON contain HTML strings
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
import Code from './Code.astro';
|
||||
|
||||
const key = Object.keys(Astro.props)[0];
|
||||
const value = Astro.props[key];
|
||||
---
|
||||
|
@ -8,7 +10,7 @@ const value = Astro.props[key];
|
|||
<h2 class="debug-title"><span class="debug-label">Debug</span> <span class="debug-name">"{key}"</span></h2>
|
||||
</div>
|
||||
|
||||
<pre>{JSON.stringify(value, null, 2)}</pre>
|
||||
<Code code={JSON.stringify(value, null, 2)} />
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
|
Loading…
Reference in a new issue