| PMARKDOWN(1p) | User Contributed Perl Documentation | PMARKDOWN(1p) |
pmarkdown – Very configurable Markdown processor written in pure Perl, supporting the CommonMark spec and many extensions.
pmarkdown [-o key=value] ... < in_file.md > out_file.html_fragment
Currently "pmarkdown" can only read a single input from its standard input and will write its output on the standard output. Both are assumed to be encoded in UTF-8.
If needed, See the GitHub pmarkdown page <https://github.com/mkende/pmarkdown> for installation instructions.
These options can be passed to the program with the "--options" flag.
When a mode is applied, is set specific values for some options but any value for these options set through the "--option" flag will take precedence.
The options are described in the Markdown::Perl::Options page. You can see it with the "pmarkdown --list-options" command.
When specifying an option value, boolean options should be passed as either 0, 1, "false", or "true".
Note that all options are applied on top of the selected mode. Even if the options are passed before the --mode flag, the mode will not override options set through --option.
Note that, in practice, setting the mode to default is equivalent to not setting a mode at all, except that subsequent calls to set a mode will raise a warning about the mode being overwritten.
Note that this mode is not 100% similar to the original Markdown.pl script as that script has some buggy behavior that we are not reproducing.
This program has been written by Mathias Kende <mailto:mathias@cpan.org>.
Copyright 2024 Mathias Kende
This program is distributed under the MIT (X11) License: <http://www.opensource.org/licenses/mit-license.php>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
cmark(1), CommonMark Spec <https://spec.commonmark.org/0.30/#links>
| 2025-04-25 | perl v5.40.1 |