Replies: 2 comments
-
Hi, I already tried a similar approach by rendering a markdown file to an AST with Another approach could be to configure a foreign source for content files (see https://content.nuxtjs.org/api/configuration#sources). Unfortunately, the documentation is still very sparse with information about how to configure different sources properly. But apparently it's just the configuration of |
Beta Was this translation helpful? Give feedback.
-
Writing a driver for nuxt content is not too hard. Here's some sample drivers; https://github.com/unjs/unstorage/tree/main/src/drivers Some documentation on unstorage custom drivers, the storage framework used in nuxt content; https://unstorage.unjs.io/custom-driver Someone trying out writing a driver here; https://github.com/bloodf/nuxt_content_lazyload_driver/blob/main/drivers/devTo/driver.mjs |
Beta Was this translation helpful? Give feedback.
-
Hi I am using Nuxt 3 with @nuxt/content v2
I am having an admin dashboard from where users can write the markdown and the markdown content is stored in the database.
Now I want to render this markdown content on my Nuxt 3 website. What's the best way to do it and do I need to use component?
How can I make sure that the code highlighting is not disturbed?
Thanks in advance :)
Beta Was this translation helpful? Give feedback.
All reactions