code: function doc(text, opts) {
    var parsed = parser(text)
    return {
      meta: parsed.attrs,
      html: compiler(parsed, opts)
    }
  }
docs: Converts text in WPML format to WPML document.
  @param {string} text WPML text
  @param {object} opts
  @param {boolean} [javascript=false] Allow inline JS and script tags inside WPML doc.
  @param {number} [indent=0] Number of spaces used for indentation of generated html.
  @param {object} [opts.transforms={}] List of tags transforms, for example to
  transform all types of headings to h4
  {"h1": "h4", "h2": "h4", "h3": "h4"}.
  @param {object<string, function>} [opts.plugins] Converters of embedded content objects
  ("youtube", "facebook", "gallery", "html". Each converter should produce html
  string to replace content object:
  {"youtube": function(obj) {...}}
  
  @return {object} doc WPML document
  @return {object} doc.meta Meta information (title, tags, etc)
  @return {string} doc.html Generated HTML