From c6e19310d143e37fdf8c99fa298e4f45f668d316 Mon Sep 17 00:00:00 2001
From: juancarlosfarah
\n' + + '
\n' + ' \n' + ' \n' + ' \n' + - '
\n' + + '
\n' + ' \n' + ' \n' + ' \n' + - '
\n' + + '
\n' + ' \n' + ' \\(x^2\n' + ' \n' + - ' \\)
\n' + + ' \\)
\n' + ' \n' + ' \n' + ' \n' + - '
\\]
$$y^3$$
'; + ' \\]$$y^3$$
'; export const output2 = 'Fifty years later! "\n' + ' \n' + ' \n' + ' \n' + - ' "
'; + ' "'; export const output3 = '\n' + ' \n' + ' \n' + ' \n' + - '
'; + ' '; // special outputs export const quadraticOutput = @@ -85,25 +85,25 @@ export const quadraticOutput = 'c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\n' + 'M834 80h400000v40h-400000z\'/>.\n' + ' \n' + - '\n' + ' \n' + ' \n' + ' \n' + - '
'; + ' '; export const cosinesOutput = '\n' + ' \n' + ' \n' + ' \n' + - '
'; + ' '; export const gaussOutput = '\n' + ' \n' + ' \n' + ' \n' + - '
'; + ' '; export const vectorOutput = '\n' + ' \n' + @@ -121,7 +121,7 @@ export const vectorOutput = 'H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\n' + 'c-16-25.333-24-45-24-59z\'/>=(∂y∂Fz−∂z∂Fy)i+(∂z∂Fx−∂x∂Fz)j+(∂x∂Fy−∂y∂Fx)k\n' + ' \n' + - '
'; + ' '; export const sigmaOutput = '\n' + ' \n' + @@ -136,10 +136,10 @@ export const sigmaOutput = 'c53.7,-170.3,84.5,-266.8,92.5,-289.5z\n' + 'M1001 80h400000v40h-400000z\'/>\n' + ' \n' + - '
'; + ' '; export const christoffelOutput = '\n' + ' \n' + ' \n' + ' \n' + - '
'; + ' '; diff --git a/src/utils/math.js b/src/utils/math.js index cf17b7e6..180360fc 100644 --- a/src/utils/math.js +++ b/src/utils/math.js @@ -30,7 +30,7 @@ const renderToString = (input = '', indicator, regex, div) => { throwOnError: false, })} - <${div}>`; + ${div}>`; output = output.replace(matched, parsed); }); }