lepture / getbook

Generate ebooks from a collection of web links.
GNU Affero General Public License v3.0
110 stars 13 forks source link

a recipe for a page of MathJax-rendered equations #3

Open plantvsbirds opened 5 years ago

plantvsbirds commented 5 years ago

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 ?

lepture commented 5 years ago

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