Sha256: 96fb37d163484fd56143121e85e3b963461bf3714d0a98e12ae8585c0e62d530
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
# Summary Transform existing html into markdown in a simple way, for example if you want to import existings tags into your markdown based application. [](http://travis-ci.org/#!/xijo/reverse_markdown) # Installation Install the gem: [sudo] gem install reverse_markdown If you want to use it in Rails context, add it to your Gemfile: ```ruby gem 'reverse_markdown' ``` # Synopsis Given you have html content as string or Nokogiri document or element just pass it over to the module like this: ```ruby ReverseMarkdown.parse content ```` However, the old syntax is still supported: ```ruby ReverseMarkdown.parse_element content ReverseMarkdown.parse_string content ```` # Tag support Only basic html tags are supported right now. However, it should not be to difficult to add some. Feel free to contribute or notify me about missing stuff. - supported tags: h1, h2, h3, h4, h5, h6, p, em, strong, blockquote, code, img, a, hr, li, ol, ul - nested lists - inline and block code # See as well - [wmd-editor](http://wmd-editor.com) - [markdown syntax](http://daringfireball.net/projects/markdown) # Thanks ..to Ben Woosley for his improvements to the first version.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reverse_markdown-0.3.0 | README.md |