Git Product home page Git Product logo

Comments (4)

fuxialexander avatar fuxialexander commented on June 22, 2024

Sorry for the late replay...It's apparently a JS problem but I'm afraid at the moment I have no idea where it lies...Could be Katex itself not been successfully imported.

You may try to evaluate the following code and see whether the situation changes

(defun webkit-katex-render--resize() nil)

If not, the problem is probably that Katex is not functioning/imported

from emacs-webkit-katex-render.

indigoviolet avatar indigoviolet commented on June 22, 2024

Yeah, it doesn't seem to fix it. Can you give me any pointers as to where to look at the JS that should work? How can I investigate whether Katex is working?

from emacs-webkit-katex-render.

indigoviolet avatar indigoviolet commented on June 22, 2024

Digging into the file a bit, I think it's the try_render function that is not being found -- when I change that to something else like document.body.innerHTML += %s, I see the effects in the webkit buffer.

from emacs-webkit-katex-render.

indigoviolet avatar indigoviolet commented on June 22, 2024

Some more progress: I was setting --client-path incorrectly, so it wasn't finding the right katex.html. Once I fix that, and set --buffer-name to something else, like "webkit-katex" that I can actually inspect myself, I see that the Latex is being rendered in the webkit, but it still won't render in my org-mode buffer. I still see errors like

** (emacs:12687): WARNING **: 21:16:06.817: Error running javascript: undefined:1:39: TypeError: null is not an object (evaluating 'document.querySelector('.katex-html').offsetWidth')

** (emacs:12687): WARNING **: 21:16:06.831: Error running javascript: TypeError: undefined is not a function

** (emacs:12687): WARNING **: 21:16:06.848: Error running javascript: TypeError: null is not an object

** (emacs:12687): WARNING **: 21:16:06.848: Error running javascript: TypeError: null is not an object

Any ideas on how to dig further?

from emacs-webkit-katex-render.

Related Issues (10)

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.