Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lorepozo/ghmarkdown
The complete command-line tool for GitHub-flavored markdown
https://github.com/lorepozo/ghmarkdown
live markdown
Last synced: 4 months ago
JSON representation
The complete command-line tool for GitHub-flavored markdown
- Host: GitHub
- URL: https://github.com/lorepozo/ghmarkdown
- Owner: lorepozo
- License: gpl-2.0
- Created: 2015-02-07T13:29:07.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-23T21:28:44.000Z (about 7 years ago)
- Last Synced: 2024-05-19T07:38:56.768Z (9 months ago)
- Topics: live, markdown
- Language: Python
- Homepage:
- Size: 328 KB
- Stars: 32
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - ghmarkdown - The complete command-line tool for GitHub-flavored markdown (Python)
README
ghmarkdown
==========| |PyPi version|
The complete command-line tool for GitHub-flavored markdown. It provides
a convenient interface for the API provided by GitHub.ghmarkdown's ``--serve`` feature let's you locally view your markdown
**live**, so you can view your changes as you work!|usage gif|
Features
--------- Host your markdown locally to easily view your changes upon refresh.
- Easy to `install <#installation>`__
- Easy to `use <#usage>`__
- Works on Mac, Linux, and WindowsInstallation
------------.. code:: bash
pip install ghmarkdown
Usage
-----Run your markdown on a local server:
.. code:: bash
# these do the same thing
$ ghmarkdown -si my_file.md
$ ghmarkdown --serve --input my_file.md
$ cat my_file.md | ghmarkdown --serve # doesn't update changesParse your markdown to HTML locally:
.. code:: bash
# these do the same thing
$ ghmarkdown -i my_file.md -o my_page.html
$ ghmarkdown --input my_file.md --output my_page.html
$ cat my_file.md | ghmarkdown > my_page.htmlSee all features and parameters:
::
$ ghmarkdown --help
usage:
ghmarkdown [--help | --version] [--login] [--bare] [--verbose] [--input MD]
[--output HTML | --serve [--port PORT]]The complete command-line tool for GitHub-flavored markdown
optional arguments:
-h, --help show this help message and exit
--version
--input MD, -i MD input markdown file (otherwise STDIN)
--output HTML, -o HTML
output html file (otherwise STDOUT)
--login, -l allows for more requests
--bare, -b disable standalone html (gives fragment)
--verbose, -v displays server output and rate information
--serve, -s locally serve parsed markdown
--port PORT, -p PORTGitHub limits usage of its api, so if you want more than 60 req/hr use
``--login`` (you'll get 5000 req/hr).. |PyPi version| image:: https://img.shields.io/pypi/v/ghmarkdown.svg
:target: https://pypi.python.org/pypi/ghmarkdown/
.. |Python version| image:: https://img.shields.io/badge/Python-3-brightgreen.svg?style=flat
.. |usage gif| image:: https://raw.githubusercontent.com/lucasem/ghmarkdown/master/demo.gif