Skip to content

Watches a markdown file and displays a preview on localhost using GitHub's API.

Notifications You must be signed in to change notification settings

alexandersoto/markdown-previewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Markdown Previewer

Watches a markdown file and displays a preview on localhost using GitHub's API. Changes will automatically load via AJAX on every save.

Usage

./markdown_previewer.py MARKDOWNFILE_TO_WATCH.md

By default, it will connect to a random port on localhost. It will output the host and port it is connected to:

Serving MARKDOWNFILE_TO_WATCH.md on HOST:PORT

Go to HOST:PORT to preview the file.

Rate limiting

The GitHub API has a rate limit of 60 requests an hour unless you authenticate. Set the env variable GITHUB_API_TOKEN to a valid GitHub API token to increase this limit substantially.

About

Watches a markdown file and displays a preview on localhost using GitHub's API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages