comments - remove everyting between <!-- BEGIN/END COMMENT -->
<!-- BEGIN/END COMMENT -->
Pandoc filter to ignore everything between <!-- BEGIN COMMENT --> and <!-- END COMMENT --> The comment lines must appear on lines by themselves, with blank lines surrounding them.
<!-- BEGIN COMMENT -->
<!-- END COMMENT -->
pandoc --filter comments.pl -o output.html < input.md
This is a port of comments.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.