Rich Text Serializer

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

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