acdc-parser 0.8.0

`AsciiDoc` parser using PEG grammars
Documentation
= Testing Stem (Mathematical) Blocks
:stem: latexmath

== Inline stem expressions

The area of a circle is stem:[A = \pi r^2].

Einstein's famous equation: stem:[E = mc^2].

== Stem block (latexmath)

[stem]
++++
\sqrt{x^2 + y^2} = r
++++

== Stem block with title

.Pythagorean Theorem
[stem]
++++
a^2 + b^2 = c^2
++++

== Multiple stem blocks

[stem]
++++
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
++++

.Matrix Example
[stem]
++++
\begin{bmatrix}
a & b \\
c & d
\end{bmatrix}
++++

== AsciiMath stem blocks

:stem: asciimath

Inline AsciiMath: stem:[sqrt(4) = 2]

[stem]
++++
sum_(i=1)^n i = (n(n+1))/2
++++

== Mixed content with stem

Regular paragraph before.

[stem]
++++
\int_0^1 x^2 dx = \frac{1}{3}
++++

Regular paragraph after.

== Stem with escaped brackets

:stem: latexmath

A matrix: stem:[[[a,b\],[c,d\]\]((n),(k))]

Escaped close bracket: stem:[x \in [0, 1\]]

Double backslash before bracket: stem:[a\\]

== Explicit notation macros

Using latexmath directly: latexmath:[C = \alpha + \beta Y^{\gamma} + \epsilon]

Using asciimath directly: asciimath:[[[a,b\],[c,d\]\]((n),(k))]

Mixed in same document: latexmath:[x^2] and asciimath:[sqrt(x)] and stem:[a + b]