Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLSerializer #10

Open
ptrkvsky opened this issue Oct 20, 2019 · 0 comments
Open

HTMLSerializer #10

ptrkvsky opened this issue Oct 20, 2019 · 0 comments

Comments

@ptrkvsky
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant