Skip to content
/ gfm Public

Ruby gem for previewing GitHub Flavoured Markdown files, such as README.md.

Notifications You must be signed in to change notification settings

msrose/gfm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GFM Preview

Gem Version gfm API Documentation

This gem takes a markdown file and parses it with GitHub Flavored Markdown. The generated HTML file gives a preview of the file as it would appear on GitHub. This is useful for checking the format of README.md files before pushing to your remote repository.

Installation

Install with RubyGems:

$ gem install gfm

You may need to install libicu-dev and cmake first. For Ubuntu:

$ sudo apt-get install libicu-dev
$ sudo apt-get install cmake

Usage

$ gfm README.md

This generates a file named README.html, which will give a preview of the README as it would appear on GitHub.

To use a name for the HTML file other than the name of the current file:

$ gfm README.md output

This will generate a file named output.html.

Acknowledgements

Thanks to the creators of ghpreview for the inspiration to write the gfm gem. Check out their page if you would like something more comprehensive. The gfm gem is much smaller but serves my own purposes better.

About

Ruby gem for previewing GitHub Flavoured Markdown files, such as README.md.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages