Code Monkey home page Code Monkey logo

hitman's Introduction

Hitman

This is a fork of Hitman that aims to extend functionality and add a test suite.

(Original README follows)

Hitman is a Markdown parser, currently implemented in <100 lines of Clojure using Instaparse and Hiccup. There are a few features of Markdown that aren't yet supported (such as reference-style links and images, and Atx-style headers), but it generally works reasonably well. Obviously, there are some quirks to work out, but it's usable in its current state. If nothing else, I hope people can learn a bit about the fantastic Instaparse by looking at the code, as that was my own primary motivation for creating this.

Installation

git clone [email protected]:chameco/Hitman.git

It's also on Clojars. Just add [hitman "0.1.0"] to your Leiningen dependencies.

Usage

You can either run in place using Leiningen, or create a jar. You know the drill folks.

$ lein run test.txt

will write output to test.html. Another option is

$ lein uberjar
$ java -jar target/hitman-0.1.0-standalone.jar test.txt

If you're going to use it as a library, just call (markdown-to-html *string*).

License

Copyright © 2013 Samuel Breese

Distributed under the Eclipse Public License, the same as Clojure.

hitman's People

Contributors

rcarmo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.