Completed live updating math preview for markdown