Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

MathMl format doesn't work #18

Open
bobangajicsm opened this issue Sep 22, 2020 · 1 comment
Open

MathMl format doesn't work #18

bobangajicsm opened this issue Sep 22, 2020 · 1 comment

Comments

@bobangajicsm
Copy link

bobangajicsm commented Sep 22, 2020

I can't make this to work

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mfrac>
          <mn>1</mn><mn>2</mn>
   </mfrac>
</math>

even when I setup this configuration

  MathJaxModule.forRoot({
      version: '2.7.7',
      config: 'TeX-MML-AM_HTMLorMML',
      hostname: 'cdnjs.cloudflare.com'
    }),
@davidshen84
Copy link
Owner

I think you need to add the ng-mathjax attribute to your math element. But, honestly, I created this library for supporting using LaTex in HTML, I never tested it with MathML markup.

Also, since you already have the MathML markup defined, why don't you just use the MathJax library directly?

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

No branches or pull requests

2 participants