This commit is contained in:
Fred K. Schott 2021-11-18 22:21:58 -08:00
parent 4c0cb47204
commit c82ceff7eb
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Bug fix for Debug when passed JSON contain HTML strings

View file

@ -1,4 +1,6 @@
--- ---
import Code from './Code.astro';
const key = Object.keys(Astro.props)[0]; const key = Object.keys(Astro.props)[0];
const value = Astro.props[key]; 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> <h2 class="debug-title"><span class="debug-label">Debug</span> <span class="debug-name">"{key}"</span></h2>
</div> </div>
<pre>{JSON.stringify(value, null, 2)}</pre> <Code code={JSON.stringify(value, null, 2)} />
</div> </div>
<style> <style>