md-utils1p
Render markdown as html
Usage
md-utils [options]
[markdown-file]
Overview
Utility to add a table of contents and other goodies to your GitHub flavored markdown.
•
|
Add |
|---|---|
•
|
Add |
•
|
Add |
•
|
Add |
•
|
Add |
•
|
Use the --render option to render the HTML for the markdown |
Examples
md-utils README.md.in > README.mdmd-utils -r README.md.in
Options
-
-B, --body -
Default is to add body tag, use --nobody to prevent.
-
-b, --both -
Interpolates intermediate file and renders HTML.
-
-c, --css -
CSS file.
-
-e, --engine -
Engine to use, options: github, text_markdown (default: text_markdown).
-
-h, --help -
Help.
-
-i, --infile -
Input file, default: STDIN
-
-m, --mode -
For GitHub API mode is 'gfm' or 'markdown' (default: markdown).
-
-N, --nocss -
Do not add any CSS link
-
-n, --no-title -
Do not print a title for the table of contents.
-
-o, --outfile -
Output file, default: STDOUT.
-
-r, --render -
Render only, does NOT interpolate keywords.
-
-R, --raw -
Return raw HTML from engine.
-
-t, --title -
String to use for a custom title, default: "Table of Contents".
-
-v, --version -
Version.
Tips
- •
-
Use
"!#"to prevent a header from being include in the table of contents. Add your own custom back to TOC message"@TOC_BACK(Back to Index)@".
- •
-
Date format strings are based on format strings supported by the Perl module Date::Format. The default format is
"%Y-%m-%d"if no format is given.
- •
-
Use the --nobody tag to return the HTML without the
"<html><body></body></html>"wrapper. --raw mode will also return HTML without wrapper.
Author and license
Rob Lauer - [email protected]
This program is free software; you can use it and/or distribute it under the same terms as Perl itself.