-
-
Notifications
You must be signed in to change notification settings - Fork 911
Description
**When the data includes complex math equations, it fails to parse the equations **
Sample data
const _htmlContent = '''<b>গ. Y এর মান সত্যক সারনিতে দেখাও।</b>\nগ.<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><semantics><mtable columnalign=\"right left\" columnspacing=\"0em\" rowspacing=\"0.25em\"><mtr><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mi mathvariant=\"bold\">Y</mi></mstyle></mtd><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow><mrow></mrow><mo>=</mo><mover accent=\"true\"><mrow><mi>A</mi><mo>+</mo><mover accent=\"true\"><mi>B</mi><mo>ˉ</mo></mover></mrow><mo stretchy=\"true\">‾</mo></mover><mo>+</mo><mover accent=\"true\"><mrow><mi>A</mi><mo>+</mo><mover accent=\"true\"><mi>B</mi><mo>ˉ</mo></mover></mrow><mo stretchy=\"true\">‾</mo></mover></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow></mrow></mstyle></mtd><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow><mrow></mrow><mo>=</mo><mover accent=\"true\"><mi>A</mi><mo>ˉ</mo></mover><mover accent=\"true\"><mover accent=\"true\"><mi>B</mi><mo>ˉ</mo></mover><mo stretchy=\"true\">‾</mo></mover><mo>+</mo><mover accent=\"true\"><mi>A</mi><mo>ˉ</mo></mover><mover accent=\"true\"><mover accent=\"true\"><mi>B</mi><mo>ˉ</mo></mover><mo stretchy=\"true\">‾</mo></mover></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow></mrow></mstyle></mtd><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow><mrow></mrow><mo>=</mo><mover accent=\"true\"><mi>A</mi><mo>ˉ</mo></mover><mo>⋅</mo><mi mathvariant=\"normal\">B</mi><mo>+</mo><mover accent=\"true\"><mi>A</mi><mo>ˉ</mo></mover><mo>⋅</mo><mi mathvariant=\"normal\">B</mi></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow></mrow></mstyle></mtd><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow><mrow></mrow><mo>=</mo><mover accent=\"true\"><mi>A</mi><mo>ˉ</mo></mover><mo>⋅</mo><mi mathvariant=\"normal\">B</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding=\"application/x-tex\"> \\begin{aligned} \\mathbf{Y} & =\\overline{A+\\bar{B}}+\\overline{A+\\bar{B}} \\\\ & =\\bar{A} \\overline{\\bar{B}}+\\bar{A} \\overline{\\bar{B}} \\\\ & =\\bar{A} \\cdot \\mathrm{B}+\\bar{A} \\cdot \\mathrm{B} \\\\ & =\\bar{A} \\cdot \\mathrm{B} \\end{aligned} </annotation></semantics></math>\n<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><semantics><mrow><mi mathvariant=\"bold\">Y</mi><mo>=</mo><mover accent=\"true\"><mi>A</mi><mo>ˉ</mo></mover><mrow><mtext> </mtext><mi mathvariant=\"normal\">B</mi></mrow></mrow><annotation encoding=\"application/x-tex\"> \\mathbf{Y}=\\bar{A} \\mathrm{~B} </annotation></semantics></math> এর সত্যক সারণি নিচে দেওয়া হলো\n<img class=\"mx-auto bg-gray-100 rounded-lg my-2 max-h-96 object-contain\" height=\"auto\" src=\"https://assets.chorcha.net/1H56cYQklMSC2i53pUEK-.png\" width=\"256\"/><math xmlns=\"http://www.w3.org/1998/Math/MathML\"><semantics><mtable columnalign=\"right left\" columnspacing=\"0em\" rowspacing=\"0.25em\"><mtr><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow></mrow></mstyle></mtd><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow><mrow></mrow><mo>=</mo><mover accent=\"true\"><mi>A</mi><mo>ˉ</mo></mover><mover accent=\"true\"><mover accent=\"true\"><mi>B</mi><mo>ˉ</mo></mover><mo stretchy=\"true\">‾</mo></mover><mo>+</mo><mover accent=\"true\"><mi>A</mi><mo>ˉ</mo></mover><mover accent=\"true\"><mover accent=\"true\"><mi>B</mi><mo>ˉ</mo></mover><mo stretchy=\"true\">‾</mo></mover></mrow></mstyle></mtd></mtr></mtable><annotation encoding=\"application/x-tex\"> \\begin{aligned} \\\\ & =\\bar{A} \\overline{\\bar{B}}+\\bar{A} \\overline{\\bar{B}} \\end{aligned} </annotation></semantics></math> →\n<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><semantics><mtable columnalign=\"right\" columnspacing=\"\" rowspacing=\"0.25em\"><mtr><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow><mo>=</mo><mover accent=\"true\"><mi>A</mi><mo>ˉ</mo></mover><mo>⋅</mo><mi mathvariant=\"normal\">B</mi><mo>+</mo><mover accent=\"true\"><mi>A</mi><mo>ˉ</mo></mover><mo>⋅</mo><mi mathvariant=\"normal\">B</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding=\"application/x-tex\"> \\begin{aligned} =\\bar{A} \\cdot \\mathrm{B}+\\bar{A} \\cdot \\mathrm{B}\\end{aligned} </annotation></semantics></math> →\n<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><semantics><mtable columnalign=\"right\" columnspacing=\"\" rowspacing=\"0.25em\"><mtr><mtd><mstyle displaystyle=\"true\" scriptlevel=\"0\"><mrow><mo>=</mo><mover accent=\"true\"><mi>A</mi><mo>ˉ</mo></mover><mo>⋅</mo><mi mathvariant=\"normal\">B</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding=\"application/x-tex\"> \\begin{aligned}=\\bar{A} \\cdot \\mathrm{B} \\end{aligned} </annotation></semantics></math> →\n\n''';