getbook icon indicating copy to clipboard operation
getbook copied to clipboard

a recipe for a page of MathJax-rendered equations

Open plantvsbirds opened this issue 7 years ago • 1 comments

Hi, I'm trying to use this with a site full of MathJax rendered equations. I have two ideas:

  1. use original MathJax rendering in JS. That requires using a headless browser instead of requests - that could be made into a separate parser

  2. use own LaTeX parser, find pattern in HTML and render.

I'm try to make it happen, but either way, it's going to introduce new dependency. What's your opinion on above possible solutions ?

plantvsbirds avatar Nov 15 '18 22:11 plantvsbirds

A headless browser would be better. It can also parse pages with async data.

lepture avatar Nov 17 '18 03:11 lepture