Mathpix / mathpix-markdown-it

Markdown rendering + Latex extras (equations, tables, ...), with conversion features, for the scientific community
MIT License
491 stars 44 forks source link

Add new include_wolfram layer with wolfram output #199

Open nicodjimenez opened 2 years ago

nicodjimenez commented 2 years ago

The purpose is to provide a search string compatible with WolframAlpha computational engine (https://www.wolframalpha.com/). We can base this on our existing asciimath implementation. The ideal Wolfram output shown in these examples is basically almost identical to text + asciimath (with no delimiters).

Assuming multiplication Use a list instead solve system of equations Integrate int sinxx dx, x=0 infinity

Also note that we want to be able to build a single WolframAlpha search string from the whole MMD string. We can do this via

parseMarkdownByHTML(html)

which could emit type="wolfram_equation" for each sub equation (maybe this could be useful in Snip?), as well as one single type="wolfram" entry for the whole output (for search applications that want to leverage the W/A engine which is the main purpose here).

Note that tentative progress has been made in the mose/wolfram-support branch. Moses and I struggled a little with getting the dev setup working, perhaps some things can be updated to improve the dev experience.

ykolodnitskiy commented 1 year ago

Email kyle@learnwithjuni.com once released.