git-md-html - convert markdown to HTML
git-md-html [OPTIONS] [FILENAME]
There is set of scripts making attempt to convert a markdown text to HTML. Data can be read from a file, pipe or redirection, and results default to the standard output. You can redirect the output to another file or another process (if needs).
Despite of difference in implementation they have identical (or almost identical, at least I tried to follow this direction) user interface.
With the -u / -U options each script sends request to GitHub API (by default to the public GitHub API). Shell and batch scripts use curl or wget (the first one found). The Perl script uses HTTP::Tiny.
if no more options specified, the scripts try to complete convertion invoking pandoc (shell and batch) or Text::Markdown (Perl).
-h,--helpPrint this help and exit.-u,--github-api-urlUse the public GitHub API by https://api.github.com.-U URL,--api-url=URLUse another GitHub API URL.-t TOKEN-FILE,--token-file=TOKEN-FILESpecify a filename to read a token from.-T TOKEN,--token=TOKENSpecify the token.-r,--rawRaw output (no head, no CSS; html body only).
The short options are supported by the all implementations, the long options are supported by the Perl version of the script.
- Text::Markdown
- HTTP::Tiny
- Pandoc home page: https://pandoc.org
- The idea to develop this script was inspired by the JFL's script: https://github.com/JFLarvoire/SysToolsLib/blob/master/Batch/md2h.bat
- As well as his script this one uses Github Markdown Stylesheet: https://gist.github.com/tuzz/3331384
- Yet another Perl-written GitHub API based converter (one of many): https://github.com/brxfork/md2html
- Another GitLab API based converter (one of many): https://gitlab.triumf.ca/-/snippets/53
Copyright (c) 2019-2022 Ildar Shaimordanov. All rights reserved.
MIT License