Giter Club home page Giter Club logo

Comments (5)

danizen avatar danizen commented on June 24, 2024

So, after installing this plugin, the storage format for a MathJax block equation is:

<ac:structured-macro ac:name="mathjax-block-macro" ac:schema-version="1" ac:macro-id="2b193a44-073d-4148-b82c-0d006a560dbc">
  <ac:plain-text-body><![CDATA[Z_{n+1} = Z_n\times sin(Z_n)]]></ac:plain-text-body>
</ac:structured-macro>

And here is that for an inline mathjax equation:

<ac:structured-macro ac:name="mathjax-inline-macro" ac:schema-version="1" ac:macro-id="4739ddeb-fcf6-43d3-9426-6fc3c388d25b">
  <ac:parameter ac:name="equation">Z_{n+1} = Z_n\times sin(Z_n)</ac:parameter
</ac:structured-macro>

from nbconflux.

danizen avatar danizen commented on June 24, 2024

That plugin placed the MathJax scripts on that page and other pages that existed before the plugin was installed, as follows:

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['(mathjax-inline(', ')mathjax-inline)' ] ], displayMath: [ ['(mathjax-block(', ')mathjax-block)' ] ], } });
</script>
<script type="text/javascript" async
        src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
</script>

from nbconflux.

danizen avatar danizen commented on June 24, 2024

I haven't done to much with MathJax, configuration, but when I type this in a normal Confluence page, I get what you would expect:

This will converge to (mathjax-inline(\pi)mathjax-inline).

So, I need some guidance as to how to handle this - Jupyter expects the delimiter to be quite different. No doubt, the confluence plugin is using a longer string for some reason...

from nbconflux.

danizen avatar danizen commented on June 24, 2024

The plugin does support configuring tex2jax with different prefix/suffix, but whether this is wise is not so clear. It would be better to do this in a way that only targets elements with a particular class, in a large confluence site.

from nbconflux.

danizen avatar danizen commented on June 24, 2024

Related issue to enable them to use more standard prefix/suffix configuration depends on them turning it off except in divs with appropriate classes - https://bitbucket.org/keysight/keysight-plugins-for-atlassian-products/issues/72/please-support-configuration-of-the.

So, I can make the thing work the way I want. Closing this - there is no problem here with nbconflux, it already allows me to exclude mathjax and get it in Confluence a different way.

from nbconflux.

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.