You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Before everything, congratulations for the great work, i am very happy for the moment with this starter. But for the moment i am struggling with the fact to get bold, italic etc... when i render my elements from prismic ?
Is there an htmlSerializer ? Am i missing something, i just have plain text, when i render my Richtext
`import React from 'react'
import { RichText } from 'prismic-reactjs'
import { linkResolver } from '../../utils/linkResolver'
Hi,
Before everything, congratulations for the great work, i am very happy for the moment with this starter. But for the moment i am struggling with the fact to get bold, italic etc... when i render my elements from prismic ?
Is there an htmlSerializer ? Am i missing something, i just have plain text, when i render my Richtext
`import React from 'react'
import { RichText } from 'prismic-reactjs'
import { linkResolver } from '../../utils/linkResolver'
export default ({slice}) => {
return(
{ RichText.render(slice.primary.rich_text, linkResolver) }
)
}`
I have seen this article
https://www.gatsbyjs.org/packages/gatsby-source-prismic-rich-text-fields/
And this one
https://prismic.io/docs/reactjs/beyond-the-api/html-serializer
But i am really not sure how to implement it.
Thank you
The text was updated successfully, but these errors were encountered: