Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philippkueng/watney
HTML to Markdown converter
https://github.com/philippkueng/watney
Last synced: 8 days ago
JSON representation
HTML to Markdown converter
- Host: GitHub
- URL: https://github.com/philippkueng/watney
- Owner: philippkueng
- License: mit
- Created: 2015-08-06T22:32:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-08T17:31:01.000Z (over 8 years ago)
- Last Synced: 2024-10-12T04:52:30.933Z (about 1 month ago)
- Language: Clojure
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Watney
[![Circle CI](https://circleci.com/gh/philippkueng/watney.svg?style=svg)](https://circleci.com/gh/philippkueng/watney)
[![Join the chat at https://gitter.im/philippkueng/watney](https://badges.gitter.im/philippkueng/watney.svg)](https://gitter.im/philippkueng/watney?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)HTML to Markdown converter
## Tests
```bash
lein midje
```Or let the tests run automatically on file changes during development.
```bash
lein repl
user=> (use 'midje.repl)
user=> (autotest)
```## Limitations
Since both HTML and Markdown comes in a variety of ways, there are some constraints that were introduced to make the generated Markdown file as correct as possible.
* Unordered Lists are always converted to `* ` with a single space.
* List indentations are always 2 spaces.
* Ordered Lists are always converted to `1. ` with a single space.
* Between every change of HTML element there will be a newline. `H1
H3
=> # H1\n##H3`
## LicenseCopyright © 2016 Philipp Küng
Distributed under the Eclipse Public License, the same as Clojure.