Skip to content

40ants/html2text

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
t
 
 
 
 
 
 
 
 
 
 

html2text

https://travis-ci.org/40ants/html2text.svg?branch=master

WORK IN PROGRESS.

Reasoning

There is great html2text python library, but I didn't found a way how to convert HTML to Markdown from Common Lisp. And made this library.

Example:

CL-USER> (html2text:html2text "
<p>A paragraph
which can be <b>multiline</b> and <em>can contain other tags</em>.
</p>

<ul>
  <li>Lisp is a great language</li>
  <li>For the reason</li>
</ul>
")
"A paragraph which can be **multiline** and _can contain other tags_ .

* Lisp is a great language
* For the reason
"
CL-USER>

How to build documentation

To build documentation, you need a Sphinx. It is documentaion building tool written in Python.

To install it, you need a virtualenv. Read this instructions how to install it.

Also, you'll need a cl-launch. It is used by documentation tool to run a script which extracts documentation strings from lisp systems.

Run these commands to build documentation:

virtualenv --python python2.7 env
source env/bin/activate
pip install -r docs/requirements.txt
invoke build_docs

These commands will create a virtual environment and install some python libraries there. Command invoke build_docs will build documentation and upload it to the GitHub, by replacing the content of the gh-pages branch.

Authors

Copyright

Copyright (c) 2018 Alexander Artemenko (svetlyak.40wt@gmail.com)

License

Licensed under the BSD License.

About

A Common Lisp utility which converts HTML into Markdown text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published