markdent-html - Turn Markdown into HTML with Markdent
version 0.40
$> markdent-html --file ./path/to/text.md
This tool turns Markdown into HTML using Markdent.
This tool accepts the following command line options:
The file containing the Markdown to process. You must provide this or --text, but not both.
--text
Pass - to read from STDIN.
-
STDIN
The Markdown text to process. You must provide this or --file, but not both.
--file
If you pass then the output will be a full HTML document containing this as the <title> tag. If this isn't passed then the output will be a HTML fragment with no <html> or <body> tags.
<title>
<html>
<body>
If you pass with a --title it will be used to populate a <meta charset="..."> tag for the document.
--title
<meta charset="...">
If you pass with a --title it will be used to set the lang attribute for the document's <html> tag.
lang
You can add one or more dialects to the standard parser with this option. This can either be a full class name like Markdent::Dialect::GitHub or just a short name like GitHub.
Markdent::Dialect::GitHub
GitHub
Bugs may be submitted at https://github.com/houseabsolute/Markdent/issues.
I am also usually active on IRC as 'autarch' on irc://irc.perl.org.
irc://irc.perl.org
The source code repository for Markdent can be found at https://github.com/houseabsolute/Markdent.
Dave Rolsky <autarch@urth.org>
This software is copyright (c) 2021 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
The full text of the license can be found in the LICENSE file included with this distribution.
To install Markdent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Markdent
CPAN shell
perl -MCPAN -e shell install Markdent
For more information on module installation, please visit the detailed CPAN module installation guide.