function resultsToHTML(results) {
  return results.map(el => {
    const elementStyle = el.visible ? '' : 'style="display:none"'
    return `<pre ${elementStyle}>${el.outputs}</pre>`
  }
  ).join('')
}
Converts an array of processed results into HTML elements for display.

@function resultsToHTML
@param {Array<{from: number, to: number, source: string, outputs: any, visible: boolean}>} results - An array of processed results, where each object has:
  - from: The starting line number of the expression.
  - to: The ending line number of the expression.
  - source: The original expression string.
  - outputs: The formatted result of evaluating the expression.
  - visible: A boolean indicating whether the result should be displayed or hidden.
@returns {string} A string of HTML elements representing the results, where each result is enclosed in a <pre> tag with appropriate styling based on its visibility.