Skip to content
Discussion options

You must be logged in to vote

This is not supported with this syntax. But you can also return a DOM node in renderHTML so you could try the following:

renderHTML ({ node }) {
  const div = document.createElement('div')

  div.dataset.type = 'raw'
  div.innerHTML = node.attrs.html

  return div
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@robinbisping
Comment options

Answer selected by robinbisping
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants