RichText is not transforming type "paragraph"

I have a node process that is looping through the JSON of a document, and calling the method PrismicDOM.RichText.asHtml to transform the content to HTML.

      .forEach(item => {
        console.log('TRANSFORMING ', item)
        PrismicDOM.RichText.asHtml([item], linkResolver)
      })

This is working properly for the header types, but is not working for paragraph. There is no error, it simply returns the paragraph in the JSON format.

Using “prismic-dom”: “^2.1.0”

Here we are comparing the node before and after calling the RichText method. You can see paragraph unchanged.

Just in case, here is my linkResolver, which doesn’t really do anything…

const linkResolver = function(doc) {
  if (doc.type === 'page') return '/page/' + doc.uid
  return '/'
}

If I change the content in the original document to a type of header, it is then working.

Hi @doug, thanks for reaching out with your question here. This is very strange, and I’m not sure right off the bat what the issue is, I’ll need to take a closer look. I’ll DM you now so that I can gather more information.

Sounds good thanks @levi - looking forward to hearing from you.