hansongong / mathjax-vue Goto Github PK
View Code? Open in Web Editor NEWVue components for MathJax
License: MIT License
Vue components for MathJax
License: MIT License
如题,插件在本地运行良好,但是运行npm run build
之后,线上的数学公式无法解析,还是原有markdown的格式。请问下这是什么原因?还是插件自身的bug?
I understand that renderByMathjax receives the elements to render the formulas, and the solution is to look inside the $el or document, but through the reactivity the documen is always being modified by vue, and new formulas need to be rendered, it seems like a waste of performace having to read the entire document when there are changes.
Is it not possible to send the text to be rendered and get the html already transpiled back?
Ex:
const textFormula = '<span class="math-tex">\( x_a+y^3 a \)</span>'
const html = renderByMathjax(textFormula )
Return:
html = <span class="math-tex"><mjx-container><svg> ....... </svg></mjx-container></span>
or is there any other solution for not having to render the text and then call the renderByMathjax method?
this causes a bad rederization effect and a large amount of time.
How to configure to work on a specific element in a component?
Ex:
<span class="math-text">$$ x_a+y^2 $$</span>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.