Comments (5)
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.
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.
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.
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.
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)
- Images in markdown cells do not show up HOT 3
- Add documentation for using API Token HOT 2
- Supporting ipywidgets? HOT 2
- Remove code cells HOT 3
- Win7/MingW64: Command prompt stuck at "Confluence username" HOT 4
- Display plotly charts HOT 2
- Exclude cells by default HOT 1
- Prevent notifications to page watcher
- Find page by space and title HOT 1
- matplotlib images not working in my environment HOT 3
- --exclude-style no longer working
- Authenticate to Confluence with oauth2
- Conversion fails HOT 1
- The package is broken because of nbconvert 6.0.0a0 HOT 2
- TraitError when attempting to convert ipynb to confluence page HOT 3
- Remove Code Cells with CLI Argument
- Facing Hard time to include "Code" macro instead of style. My confluence server does not support styling. So for code blocks I need to
- Facing Hard time to include "Code" macro instead of style. My confluence server does not support styling. So for code blocks I need to use "Code Macro"
- The 'exporter' trait of a ConfluencePreprocessor instance expected a ConfluenceExporter, not the NoneType None.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbconflux.