#is:raw returning as rendered HTML instead of code

5 messages · Page 1 of 1 (latest)

mighty sorrel
#

In my astro file, I have the following I want returned as code. However, it's still rendering as HTML. What am I doing wrong?

<Fragment is:raw>
<form>...</form>
</Fragment>
frigid wedge
mighty sorrel
#

In other words, I was expecting this:
&lt;form&gt;&lt;/form&gt; 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.

frigid wedge