Reputation: 1513
In markdown quick reference, we know that one can display plain code in blocks by enclosing the code in ```. I wonder if there is a simple way to display math equations in block too. Thanks.
Upvotes: 3
Views: 11517
Reputation: 1035
Vanilla Markdown and Markdown Extra don't support mathematics. However, kramdown and MultiMarkdown do very easily, and there's an extension for PHP Markdown Extra that you can use. The syntax is different for each, so it depends on which you're using.
In short, in kramdown, use $$ double dollar signs $$
, and in MultiMarkdown or the PHP Markdown Extra Math extension, use \[ LaTeX-style brackets \]
for display and \(LaTeX-style parentheses\)
for inline mathematics.
Upvotes: 2