3 var uri = require('../util/enclose-uri');
4 var title = require('../util/enclose-title');
6 module.exports = definition;
8 /* Stringify an URL definition.
10 * Is smart about enclosing `url` (see `encloseURI()`) and
11 * `title` (see `encloseTitle()`).
13 * [foo]: <foo at bar dot com> 'An "example" e-mail'
15 function definition(node) {
16 var content = uri(node.url);
19 content += ' ' + title(node.title);
22 return '[' + node.identifier + ']: ' + content;