Skip to content

Replace markdown code snippets with screenshots

Notifications You must be signed in to change notification settings

nolds9/SnipShot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

SnipShot

A CLI app to replace markdown code snippets with screenshots

CLI Usage

Note: Requires PhantomJS to be installed. If you're using OSX and have Homebrew installed, this can be done with $ brew install phantomjs

To use, run the following scripts from the root directory of any markdown file to parse:

First, pass the url to the markdown file you want to crawl..

# pass the url to the markdown file to parse as an argument
$ phantomjs app.js https://github.com/ga-wdi-lessons/activerecord-intro
# this will output screenshots in a directory /images

Then, replace the code snippets with screenshots in your markdown file...

# pass the name of the markdown file and redirect to the name of the file to create
$ node markdown.js readme.md > new_readme.md # creates a file called new_readme.md
# assumes you are in the same directory as the images directory

Bugs/Issues

Please file an issue on this repository or feel free to submit a pull request!

About

Replace markdown code snippets with screenshots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published