Giter Site home page Giter Site logo

MathJax Rendering about notion-page-to-html HOT 3 CLOSED

asnunes avatar asnunes commented on May 27, 2024
MathJax Rendering

from notion-page-to-html.

Comments (3)

asnunes avatar asnunes commented on May 27, 2024 1

Hi @banrovegrie. Sorry for not getting back to you sooner. It seams to be a problem related to MathJax v3. There is an open issue about this on MathJax project. KaTeX seams to be the solution used by Notion project and it may feat better. I will consider migrate from MathJax to KaTeX on future releases.

In the mean time, you are free to open a PR or you may get only the html output from Notion page conversion and implement KaTeX on it.

Thank you for your report :)

from notion-page-to-html.

asnunes avatar asnunes commented on May 27, 2024

Hi, @banrovegrie. Thank you for your report. Could you give some output example or public page where the problem is happening?

from notion-page-to-html.

banrovegrie avatar banrovegrie commented on May 27, 2024

Hey @asnunes, sorry for the late reply. Here, is an example of the rendering problem.

In one of the equations in the page, if you see the Tex Command its given as follows, but there is no line-break rendered.

a_0 = (a+d)/2,\ a_1 = (b+c)/2,\\ a_2 = (c-b)/2i,\ a_3 = (d-a)/2

I think the problem is that Block Equation in Notion allows \\, but MathJax doesn't allow multi-line equations. In that case, KaTeX might be a better option because its typesetting matches Notion's and it's probably faster too at rendering.

from notion-page-to-html.

Related Issues (18)

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.