Coder Social home page Coder Social logo

Comments (5)

liffiton avatar liffiton commented on August 29, 2024

The links to the documentation need to be updated, it looks like. I'm working on that. Thanks for pointing that out!

The URL for the TeX/AsciiMath configuration provided on the wiki page should work, though. It's still valid. Are you having trouble with it?

from dokuwiki-plugin-mathjax.

GJRobert avatar GJRobert commented on August 29, 2024

The URL for the TeX/AsciiMath configuration provided on the wiki page should work, though. It's still valid. Are you having trouble with it?

For me,
plugin default URL:
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS_CHTML.js
renders math, not AsciiMath markup.

AsciiMath config URL on the wiki page:
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/config/TeX-MML-AM_CHTML.js
does not render MathJax nor AsciiMath at all.

Combine the both above:
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML.js
renders math, still no AsciiMath markup.

from dokuwiki-plugin-mathjax.

liffiton avatar liffiton commented on August 29, 2024

[Sorry it took me so long to get to this.]

I'm not sure why, but the example URLs in the wiki were just wrong, so thanks for pointing that out.

Using https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML.js does work for me, rendering AsciiMath, but there are issues. If I just write a_i in backticks, it renders correctly, but more complex formulas run into issues with DokuWiki parsing things (like ^ for footnotes) and breaking things. The plugin is not currently setup to "protect" the AsciiMath within AsciiMath delimiters (the backticks).

You can work around that by putting the AsciiMath in %% to make Dokuwiki skip trying to parse is. So this works for me with the now-corrected URL linked above and now in the wiki:

%%`sum_(i=1)^n i^3=((n(n+1))/2)^2`%%

I'll close this issue (the URL in the wiki has been corrected) and open another about the broken AsciiMath support for the plugin overall.

from dokuwiki-plugin-mathjax.

GJRobert avatar GJRobert commented on August 29, 2024

Thanks to @liffiton The workaround works.

I also found that, AsciiMath can be put in backticks only, no need to use MathJax $...$ \(...\) $$...$$ \[...\]

from dokuwiki-plugin-mathjax.

liffiton avatar liffiton commented on August 29, 2024

No problem. And I should have come back here to mention that I fixed the issue, too. So if you update to the latest version of the plugin, you shouldn't have to use the workaround anymore.

from dokuwiki-plugin-mathjax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.