Process a variant of Markdown for my math classes.