Comments (6)
Thanks @pkra for the clear and accurate comment.
Rendering math is tough, lots of workarounds are used getting this lib working.
from react-native-math-view.
Thank you very much for the answers!
from react-native-math-view.
Hi, you should define macros so mathjax knows what to do.
Also it is likely you need to escape backslashes (\\
).
Refer to this commit: 6556598
from react-native-math-view.
for example
<MathView
config={{ macros: {
'placeholder': ''
}}
/>
from react-native-math-view.
The macros work but they are virtually the same as 'find and replace'. And the issue remains - we can't be sure we've caught all unknown tags that come from the https://cortexjs.io/mathlive/demo/ library.
We searched for 'exponentialE' in the mathjax's react native lib source code and it seems to be present in a few places yet it doesn't render.
Our issue is that with macros we can't be sure that we'll render all tags that could possibly come from cortexjs and it's very important for us to be sure that we can render the latex properly.
from react-native-math-view.
Random bystander here. Both mathlive and mathjax are completely separate systems, even if both use TeX-like syntax (and TeX itself is different still). If you use one tool for authoring and another for rendering, you're bound to run into such issues.
The relevant docs are http://docs.mathjax.org/en/latest/input/tex/macros/index.html and https://cortexjs.io/mathlive/reference/commands/. You can diff them and create all missing macros -- or do the community a favor and create a proper MathJax extension.
from react-native-math-view.
Related Issues (20)
- How to change font family and font style HOT 1
- Custom Fonts HOT 4
- \hline is not showing with vertical addition(IOS) HOT 9
- How to draw \begin{cases} ? HOT 2
- Require cycle from node_modules HOT 4
- font size config not working for MathText HOT 6
- Support for MathML input HOT 6
- How to suppress errors that cause app crash? HOT 1
- Set a different color (for dark backgrounds) HOT 1
- Curly braces are broken to 3 pieces HOT 1
- Invariant Violation: requireNativeComponent: "RNMathView" was not found in the UIManager HOT 1
- Everything working and then suddenly got RNMathView" was not found in the UIManager. HOT 8
- can't find variable require HOT 9
- Unrecognized font family 'serif' at ios HOT 1
- Warning with new RN version 0.69+ HOT 2
- tests
- The lib does not correctly render some latex types that are normally rendered by MathJax HOT 7
- MathView container styling between Android and iOS is inconsistent HOT 3
- getting RNMathVIew not found in UI Manager. HOT 3
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 react-native-math-view.