Skip to content

brettcs/RenderGFM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RenderGFM

RenderGFM is a command-line tool that renders Markdown to HTML exactly how GitHub does it.

This tool calls the GitHub API to convert Markdown to HTML. Use this to check that your document will look the way you want on GitHub without cluttering your Git history.

Installation

Install Python 3 and run:

  python3 -m pip install --user RenderGFM

Important Security Note

RenderGFM uploads your Markdown to GitHub servers. You should only use this tool on documents that you intend to publish on GitHub, and nothing private.

Usage

Typical usage looks like:

  rendergfm -O README.html README.md

RenderGFM will write to standard output, and read from standard input, if you don't specify any file arguments. So you can equivalently run it like:

  rendergfm <README.md >README.html

Pass the --context/-c option to specify the repository you're working from, and automatically generate GitHub links to issues, pull requests, etc.

  rendergfm -c brettcs/RenderGFM README.md

There are additional options to control the rendering mode and enable debug logs. Run rendergfm --help for details.

Limitations

The HTML output isn't stylized at all. It's still enough to check for correctness, but the tool could add some CSS to make it easier to read.

RenderGFM is free software

RenderGFM is copyright © 2022 by Brett Smith. You can use, share, and modify the program under the terms of the included Apache License 2.0.

About

A command-line tool that renders Markdown to HTML exactly how GitHub does it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages