Replies: 1 comment
-
I decided to just go old-school and use A built-in way to achieve this would have been a lot neater though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi friends,
I am trying to understand the parser / compiler in the content module.
I have created a file
server/routes/feed.xml.ts
and I have performed a query for nuxt content in this file.Everything is working correctly, except the
body
field for each post is returning a JSON tree (I assume this is hast (?) )(e.g. when I view
<BASE_URL>/api/_content/query?only=body
).My goal is to generate html on the server, so that my feed will contain rich, nicely marked up content.
I recently started a thread in the nuxt discord about this.
This is as close as I have been able to get so far
The problem is that this combination of utilities seems to strip away all of my mark-up elements and replaces them with
<div>
's.Wondering if anyone knows what I might be doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions