Enhance Theorem/Definition/Lemma Referencing
Current Situation
Blockquote styles for definition, theorem, and lemma:
<blockquote class="[definition/theorem/lemma]">
...content
</blockquote>
To reference, users add id:
<blockquote class="[definition/theorem/lemma]" id="[unique_id]">
...content
</blockquote>
Reference using $\ref{[unique_id]}$ or $\eqref{[unique_id]}$, which only shows the number.
Goal
Mimic LaTeX's Theorems and proofs referencing style.
Desired Outcome
LaTeX-like syntax:
\begin{theorem}[Pythagorean theorem]
\label{pythagorean}
This is a theorem about right triangles and can be summarised as:
\[ x^2 + y^2 = z^2 \]
\end{theorem}
Referencing:
And a consequence of theorem \ref{pythagorean} is the statement in the next corollary.
Result:
