Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Easily convert HTML into Textile, Markdown, LaTeX, YAML, or whatever you want to =)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 undress.gemspec
README.rdoc

Undress

Easily convert back HTML to Textile, Markdown, RDoc or whatever other markup language you like.

require "undress/textile"

code =<<html
  <h1>Hello world!</h1>
  <p><strong>Hey!</strong> How is it going?</p>
  <h2>Supported Markup Languages so far:</h2>
  <ul>
    <li>Textile</li>
    <li>And more to come :P</li>
  </ul>
html

Undress(code).to_textile

Will produce

h1. Hello world!

*Hey!* How is it going?

h2. Supported Markup Languages so far:

* Textile
* And more to come :P

Supported Markup Languages

For now the only language supported is Textile. But I'll be happy to accept patches to add more languages :)

Get it

gem install undress

License

Authors

Nicolas Sanguinetti (foca)

License

MIT (Check LICENSE for details)

Something went wrong with that request. Please try again.