Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

unobtainium driver providing content access via kramdown

License

Notifications You must be signed in to change notification settings

jfinkhaeuser/unobtainium-kramdown

Repository files navigation

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.

About

unobtainium driver providing content access via kramdown

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages