runarberg / markdown-it-math

Markdown-it plugin to include math in your document
MIT License
40 stars 18 forks source link

Allow single line block math #11

Closed runarberg closed 9 years ago

runarberg commented 9 years ago

Currently we ignore everything between opening block delimiters and the next newline. The reason being that future versions could use that space for arguments, as is the case with code fences. However, many people are used to write their block expressions in a single line, comming from typesetting systems like TeX, and it can be inconvenient for them to change their style when moving to markdown. Therefor we should allow single line block expressions to be allowed by default and perhaps in future versions make the code fence behavior optional.

leipert commented 9 years ago

See #10 ;)