ITDP / the-online-brt-planning-guide

Online collaborative version of the BRT Planning Guide
https://brtguide.itdp.org
Other
6 stars 20 forks source link

Feature: math validation before the generation #16

Closed jonasmalacofilho closed 8 years ago

jonasmalacofilho commented 8 years ago

Since HTML allows anything but TeX does not, we've been surprised a few times by bad math expressions that pass the parsing phase (and the html generation), but fail on the TeX building of the pdfs.

I had initially thought or validating directly in TeX, but that would require a TeX installation for all most uses of the generator tool. However, since we're now using Node.js as our main target, and since MathJax has a browser independent API, we can add experiment with more strict (and thus helpful) math handling.

jonasmalacofilho commented 8 years ago

Closed by fd8e965a33517355c6b204c26880011ae467cb21

Could be improved and tested, but it's sufficient for now. We first need some real world experience with this...