From PR #3270 i found that the cheatsheet goodie require new feature to specify mathematical equations as val key so that the goodie will display the specified equations like this (well formatted):

A new template named maths can be created.
What is your opinion? Anyone like to implement this?
cc: @duckduckgo/community-leaders @duckduckgo/duckduckhack-contributors @moollaza @zekiel
I was just commenting on issue #3270. :smile: We can use MathJax or other similar library for this. :blush:
@gautamkrishnar Indeed - we've been getting quite a lot of mathematically-oriented cheat sheets lately, we should support LaTeX (perhaps through MathJax, as @ManrajGrover suggested) with pretty rendering.
@gautamkrishnar Indeed - we've been getting quite a lot of mathematically-oriented cheat sheets lately, we should support LaTeX (perhaps through MathJax, as @ManrajGrover suggested) with pretty rendering.
/cc @zachthompson
:+1: for Mathjax! I have helped integrate it before on sites. It'd be cool if we could integrate that into DDG when applicable. It has some really neat features for math aficionados :smile:
We have support for LaTeX available via Mathquill. It's being used in the Symbolab Spice currently.
IIRC when I investigated libs for making Math look nice, the MathJAX lib was very large so I avoided it.
Happy to be proven wrong though.
This looks to be the size of the Mathquill assets:

@moollaza I hadn't heard of Mathquill, but it looks much more lightweight and easier to configure. Mathjax has a LOT of configuration options so maybe there is a way to make it lighter, but I'd say Mathquill works here going forward!
@moollaza Oooh, that might be nice for the Interactive Calculator... Sweet.
Mathquill does look like better option. I have seen equations requiring MathJax taking time to render after page load. :smile:
Mathquill looks amazing. Thank you for mentioning this.
I checked with @moollaza and to make this happen, the cheatsheet main JS file "would need to be updated with some logic to determine if MathQuill is required and load it if so". Should be this file: zeroclickinfo-goodies/share/goodie/cheat_sheets/cheat_sheets.js
Yes i think we could use some regexp to detect maths data and make the MathQuill trigger...
Yes i think we could use some regexp to detect mats queries and make the MathQuill trigger...
I think that's too unreliable. We'll need a more declarative approach. For example a new "Math" template type, or variable that indicates the section/key/value contains math. We now have a few cheat sheets that contain math so that would be a good starting point.
:+1: for the new Math template. Much needed.
@moollaza I think we should have a new template type. It would work well with the new trigger system too (custom triggers for all mathematical cheat sheets).
Is anyone working on this one? I would like to take care of it.
This seems to have gone stale. Closing for now.
Most helpful comment
@moollaza I think we should have a new template type. It would work well with the new trigger system too (custom triggers for all mathematical cheat sheets).