///|
/// Convert an HTML string to rabbita code using default configuration.
pub fn convert(html : String) -> String {
  convert_with(html, Config::default())
}

///|
/// Convert an HTML string to rabbita code with the given configuration.
pub fn convert_with(html : String, config : Config) -> String {
  let doc = @html.parse(html)
  do_convert_document(doc, config)
}

///|
/// Convert a pre-parsed HTML document to rabbita code with the given configuration.
pub fn convert_document(doc : @html.Document, config : Config) -> String {
  do_convert_document(doc, config)
}