Repository is archived
No commit activity in last 3 years
No release in over 3 years
The unobtainium-kramdown gem is a kramdown-based driver implementation for unobtainium. Unlike built-in driver implementations, it does not provide a Selenium-like API, but rather one mostly identical to plain kramdown.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 11.3
~> 3.7
~> 0.16
>= 0.9.12, ~> 0.9

Runtime

 Project Readme

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.