Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for MathML #219

Closed
Nijinsha opened this issue Jan 27, 2020 · 5 comments · Fixed by #577
Closed

Support for MathML #219

Nijinsha opened this issue Jan 27, 2020 · 5 comments · Fixed by #577

Comments

@Nijinsha
Copy link

Support for MathML would be a nice feature. Flutter doesn't/ have very few MathML libraries.

@Sub6Resources
Copy link
Owner

This would be a good additional package. I'll look into what it would take.

@devry12
Copy link

devry12 commented Feb 2, 2020

I also need this

@Nijinsha
Copy link
Author

@Sub6Resources any updates on this?

@taufiqridha
Copy link

+1

@tneotia
Copy link
Collaborator

tneotia commented Mar 7, 2021

Currently a WIP:

image

I've added support for msup, msub, mfrac, msqrt, mi, mn, mo so far.

HTML
<math>
    <mrow>
      <mrow>
        <msup>
          <mi>a</mi>
          <msup>
          <mi>a</mi>
          <mn>2</mn>
        </msup>
        </msup>
        <mo>+</mo>
        <msup>
          <mi>b</mi>
          <mn>2</mn>
        </msup>
      </mrow>
      <mo>=</mo>
      <msup>
        <mi>c</mi>
        <mn>2</mn>
      </msup>
    </mrow>
  </math>
  </br>
  <math>
		
         <mrow>			
            <mrow>
				
               <msup>
                  <mi>x</mi>
                  <mn>2</mn>
               </msup>
					
               <mo>+</mo>
					
               <mrow>
                  <mn>4</mn>
                  <msub>
                  <mi>x</mi>
                  <mn>b</mn>
                  </msub>
               </mrow>
					
               <mo>+</mo>
               <mn>4</mn>
					
            </mrow>
				
            <mo>=</mo>
            <mn>0</mn>
				 
         </mrow>
      </math>
      <br/>
      <br/>
      <math>
        <msqrt>
          <mfrac bevelled="true">
           <mfrac>
              <msqrt><mi>a</mi></msqrt>
              <mi> b </mi>
           </mfrac>
           <mfrac>
              <mi> c </mi>
              <mi> d </mi>
           </mfrac>
          </mfrac>
        </msqrt>
      </math>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants