unobtainium driver providing content access via kramdown
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
unobtainium-kramdown.gemspec

README.md

unobtainium-kramdown

This gem provides a driver implementation for unobtainium based on kramdown.

Gem Version Build status

To use it, require it after requiring unobtainium, then create the appropriate driver:

require 'unobtainium'
require 'unobtainium-kramdown'

include Unobtainium::World

drv = driver(:kramdown)

# goto is provided by this gem, and wraps `open-uri`. Any URI accepted by that
# will work here.
drv.goto('README.md')

# Any other methods are delegated to kramdown, such as e.g. `#to_html`
doc = drv.to_html

You probably will not want to parse the output of a converter, though. Use drv.root instead.