Pandoc filter to convert divs with class="theorem" to LaTeX theorem environments in LaTeX output, and to numbered theorems in HTML output.
class="theorem"
pandoc --filter theorem.pl -o output.html < input.md
This is a port of theorem.py from Python to Perl with Pandoc::Elements and Pandoc::Filter.
To install Pandoc::Elements, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pandoc::Elements
CPAN shell
perl -MCPAN -e shell install Pandoc::Elements
For more information on module installation, please visit the detailed CPAN module installation guide.