#is:raw returning as rendered HTML instead of code
5 messages · Page 1 of 1 (latest)
that's expected, raw is forwarded as is https://docs.astro.build/en/reference/directives-reference/#israw
what you want might be a code section with spcial code highlight.
In other words, I was expecting this:
<form></form> but instead got the rendered form.
I also realize, I could just use markdown, but I'm trying to kill 2 birds, one stone – by not repeating myself.
Basically, I want to show the rendered component with its corresponding code.
Ideally in my astro file I want to pull in Form.astro: <Form /> and <Form is:raw />. But I guess I'm making things up now.
I have an example for showing a rendered component, its generated html and its code
https://github.com/MicroWebStacks/astro-examples#16_html-string