Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top