hacking-2804 / accessible-course-material

MIT License
2 stars 0 forks source link

Possible Tech Change #1

Open ChristopherBlackman opened 5 years ago

ChristopherBlackman commented 5 years ago

It might be worthwhile to get an abstract syntax tree (ABST) out of a latex document. Then you can just transverse the ABST (inorder, post order, pre-order, idk) and output the tokens that you want into your markdown.

I know tex2py has some kind of tree system, but it might be worthwhile to use TexSoup since they have an expression tree parser which tex2py is based off of.

Expression Tree Generator in TexSoup

AngelOnFira commented 5 years ago

Interesting, I suppose that these are a wrapper for Regex similar to what we are doing, but no reason for us to reinvent the wheel. I'll check out how they function, then see if it would be viable to switch over.

@ChristopherBlackman if you wanted to make a prototype with one of the libraries you think is best, feel free. If it works well, I'd be inclined to switch over.

@MathyouMB ^