Giter VIP home page Giter VIP logo

mathjax-vue's People

Contributors

hansongong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mathjax-vue's Issues

Vue build打包之后,插件无法解析公式

如题,插件在本地运行良好,但是运行npm run build之后,线上的数学公式无法解析,还是原有markdown的格式。请问下这是什么原因?还是插件自身的bug?

rendering with reactivity

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.

Vue 2 tag

How to configure to work on a specific element in a component?
Ex:
<span class="math-text">$$ x_a+y^2 $$</span>

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.