diff --git a/README.md b/README.md index ad29f2c..f34c0b7 100644 --- a/README.md +++ b/README.md @@ -225,9 +225,7 @@ check **Format messages with markup**. This should solve the problem. ## How do I get my math rendered? -As you do in TeX, use `$ ... $` for inline math and `$$ ... $$` for display-style math. -If you need to write a lot of dollar-signs in a message and want to prevent rendering, -use backslash to escape them: `\$`. +Use `$$ ... $$` or `\( ... \)` for inline math and `$$$ ... $$$` or `\[ ... \]` for display-style math. Note that only users with MathJax injected in their client will see the rendered version of your math. Users with the standard client will see the equations just as you wrote them diff --git a/math-with-slack.py b/math-with-slack.py index ad153fc..6b4e608 100644 --- a/math-with-slack.py +++ b/math-with-slack.py @@ -977,9 +977,9 @@ def get_injected_code(mathjax_src, mathjax_tex_options): if mathjax_tex_options == "default": mathjax_tex_options = """{ - packages: {'[+]': ['noerrors', 'noundefined']}, - inlineMath: [['$', '$']], - displayMath: [['$$', '$$']], + packages: {'[+]': ['noerrors', 'noundefined', 'ams', 'color', 'boldsymbol']}, + inlineMath: [['$$', '$$'], ['\\\\(', '\\\\)']], + displayMath: [['$$$', '$$$'], ['\\\\[', '\\\\]']], }""" elif os.path.isfile(mathjax_tex_options): with open(mathjax_tex_options, "r") as f: