Rich Text Serializer

You can make the module use a Rich Text Serializer. To do so, export one from ~/prismic/richTextSerializer (~/app/prismic/richTextSerializer on Nuxt 3):

~/prismic/richTextSerializer.[jt
export default {
    paragraph: ({ children }) => `<p class="fooBar">${children}</p>`,
}
The default path (~/prismic/richTextSerializer, ~/app/prismic/richTextSerializer on Nuxt 3) can be changed with the richTextSerializer option. See the module configuration ->