Skip to content

ildar-shaimordanov/git-markdown-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Content

NAME

git-md-html - convert markdown to HTML

SYNOPSIS

git-md-html [OPTIONS] [FILENAME]

DESCRIPTION

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).

OPTIONS

  • -h, --help Print this help and exit.
  • -u, --github-api-url Use the public GitHub API by https://api.github.com.
  • -U URL, --api-url=URL Use another GitHub API URL.
  • -t TOKEN-FILE, --token-file=TOKEN-FILE Specify a filename to read a token from.
  • -T TOKEN, --token=TOKEN Specify the token.
  • -r, --raw Raw 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.

SEE ALSO

COPYRIGHT

Copyright (c) 2019-2022 Ildar Shaimordanov. All rights reserved.

MIT License