'use strict';

var createElement = require( './../lib' );

var opts = {
	'className': 'eqn',
	'align': 'left',
	'raw': '\\operatorname{erf}(x) = \\frac{2}{\\sqrt\\pi}\\int_0^x e^{-t^2}\\,\\mathrm dt',
	'label': 'eq:erf',
	'src': 'https://cdn.rawgit.com/stdlib-js/stdlib/master/lib/node_modules/@stdlib/math/base/special/erf/docs/img/eqn.svg',
	'alt': 'Error function.'
};

var html = createElement( opts );

console.log( html );
/* =>
    '<div class="eqn" align="left" data-raw-text="\operatorname{erf}(x) = \frac{2}{\sqrt\pi}\int_0^x e^{-t^2}\,\mathrm dt" data-equation="eq:erf">
      <img src="https://cdn.rawgit.com/stdlib-js/stdlib/master/lib/node_modules/@stdlib/math/base/special/erf/docs/img/eqn.svg" alt="Error function.">
      <br>
    </div>'
*/

@@ -427,16 +427,12 @@
 );%0A/
-*
+/
  =%3E
-%0A   
  '%3Cd
@@ -570,19 +570,18 @@
 eq:erf%22%3E
-%0A  
+%5Cn
     %3Cimg
@@ -724,19 +724,18 @@
 n.%22%3E
-%0A  
+%5Cn
     %3Cbr%3E
 %0A   
@@ -734,20 +734,17 @@
 %3Cbr%3E
-%0A    
+%5Cn
 %3C/div%3E'%0A
 */%0A
@@ -744,7 +744,4 @@
 v%3E'%0A
-*/%0A

Update return value