<!DOCTYPE html> <html>
<head> <title>README.md - showmd preview</title> <style type="text/css"> #preview{ width: 80%; margin: auto; background: white; padding: 10px 30px; box-shadow: 5px 5px 1px grey; } body{ background: #d3d3d3; } footer{ width: 80%; margin:auto; text-align: right; padding-top: 15px; } img{ max-width: 100%; } </style> <script type="text/javascript" src="../pagedown/Markdown.Converter.js"></script> <script type="text/javascript" src="../pagedown/Markdown.Sanitizer.js"></script> <script type="text/javascript" src="../pagedown/Markdown.Extra.js"></script> </head> <body> <div id="markdown">## Showmd
### An executable to preview markdown in your browser
Showmd
lets you preview markdown files in your browser from the command line, it's a lightweight utility that will take the path to a markdown file and open up a preview in your browser. The markdown file is read and converted to HTML using [pagedown](code.google.com/p/pagedown/) and [pagedown-extra](github.com/jmcmanus/pagedown-extra) javascript libraries, a temporary file is created and previewed using [launchy](github.com), so as everything is done client side you don't even need a net connection.
### Installation
“`
gem install showmd
“`
### Usage
“`
showmd my_project/README.md
“`
### Screenshot
![]()
### Tests
“`
rake test
“`
### Licence
See [Licence.txt](github.com/cih/showmd/blob/master/Licence.txt) </div>
<div id="preview"></div> <footer>Preview generated using <a href="http://github.com/cih/showmd">showmd</footer> <script type="text/javascript"> (function () { var converter = Markdown.getSanitizingConverter(); var markdown = document.getElementById("markdown"); var preview = document.getElementById("preview") Markdown.Extra.init(converter); preview.innerHTML = converter.makeHtml(markdown.innerHTML); markdown.innerHTML = ""; })(); </script> </body>
</html>