function convert( markdown ) {
	if (
		!isString( markdown ) &&
		!isBuffer( markdown )
	) {
		throw new TypeError( format( 'invalid argument. Must provide either a string or a Buffer. Value: `%s`.', markdown ) );
	}
	return transform( markdown.toString() ).contents;
}
Converts Markdown to Virtual DOM.

@param {(string|Buffer)} markdown - markdown to convert
@throws {TypeError} must provide either a string or a Buffer
@returns {VTree} virtual tree

@example
var markdown = '# Beep\n> Boop!';

var vtree = convert( markdown );