Add math preview

# :warning: not yet ready to be merged

Fix #103