# CommonMark testing started here!

**URL:** https://meta.discourse.org/t/commonmark-testing-started-here/65121
**Category:** Feature
**Created:** [June 26, 2017, 12:44pm UTC](https://meta.discourse.org/t/commonmark-testing-started-here/65121 "2017-06-26T12:44:40Z")
**Posts on this page:** 1
**Showing post:** 59

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 6, 2017, 9:37pm UTC](https://meta.discourse.org/t/commonmark-testing-started-here/65121/59 "2017-07-06T21:37:09Z")

</div>

OK, I took a shot at the plugin.

> [@Discourse Math](https://meta.discourse.org/t/discourse-math-plugin/65770):
>
> discourse2Summary Discourse Math uses [MathJax](https://www.mathjax.org/) (default) or [KaTeX](https://katex.org/) to render maths in your Discourse forum.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Enabling Math The Math plugin can be enabled from its settings, accessed from your admin/plugins page: [Math settings] Features Once enabled, you can render inline math by wrapping with a single $ like so: $E=mc^2$. You can render blocks of math…

For now:

1. I used `$` and the [jgm suggested heuristic](https://github.com/discourse/discourse-math/blob/master/spec/pretty_text_spec.rb#L33-L41) as to handle cases like `100$ + 200$`

2. I selected TeX cause that is what [math.stackexchange.com](http://math.stackexchange.com) seem to use so there is lots of prior art.

3. I embedded the fonts in the plugin, and [load on demand](https://github.com/discourse/discourse-math/blob/master/assets/javascripts/initializers/discourse-math.js.es6#L56-L64).

---

_[View the full topic](https://meta.discourse.org/t/commonmark-testing-started-here/65121)._
