function processText (dialogNode, context) {
  let text = utils.i18n(dialogNode, 'text')
  try {
    text = tmpl(text || '', context)
  } catch (err) {
    console.warn("Couldn't process text template:", err, { dialogNode, text, context })
  }
  if (!text) {
    return undefined
  }

  const newText = decodeHtml(marked(text))
  return wrapText(`<div>${newText}</div>`)
}
Extract the text from the DialogNode, and transform it into an html element ready for animation.

This function handles internationalization, text interpolation and html/markdown processing.

We use the very light weight [Javascript-Templates](https://blueimp.github.io/JavaScript-Templates/)
library in order to provide text templating.

@param {DialogNode} dialogNode
@param {Object} context - The object referred to as `o` in the text templates.
@returns {HTMLElement|undefined} The processed element.