Command-line tool to render Markdown to HTML using the GitHub API
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file RenderGFM-1.0.1.tar.gz
.
File metadata
- Download URL: RenderGFM-1.0.1.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c950a63bb77f055cd806d98cb8ef564813a52e916cca71765606bab1d683ae2 |
|
MD5 | 194c031a88c72ce14f4976e6d2ba45ea |
|
BLAKE2b-256 | cbbd5855005bcec1e87e4bcf664f547864599b6fd30470b704ee5a44a47f09d0 |
File details
Details for the file RenderGFM-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: RenderGFM-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2251c9a3916f9ff98cf5c953dee5696a089d4ea2379b740518ec9ed21fe0614 |
|
MD5 | 3e2d11e3f9d991db8924201411770cd7 |
|
BLAKE2b-256 | 7ce2e5b45f7ccd287306192c98f0e0ce531aaf63a990ae09c1d07c467d201d94 |