Skip to content

hsestupin/html-to-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-to-md

A Clojure library for converting html to md. Tiny and simple. Many thanks to https://github.com/domchristie/to-markdown - lots of regular expressions and test cases were grabbed from there.

Usage

How to convert html string:

    (use 'html-to-md.core)

    (html-to-md-string "<img src='http://example.com/logo.png' alt='Example logo' />")
    => "![Example logo](http://example.com/logo.png)"

For more complex usecases there is function html-to-md [in out]:

Leiningen plugin

Leiningen plugin for converting html files to md is also available https://github.com/hsestupin/lein-html2md

Dependency

[org.clojars.hsestupin/html-to-md "0.1.1"]
<dependency>
  <groupId>org.clojars.hsestupin</groupId>
  <artifactId>html-to-md</artifactId>
  <version>0.1.1</version>
</dependency>

License

Copyright (C) 2014 Sergey Stupin

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

About

Simple html to md converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published