Open lukas-pierce opened 4 years ago
See todo
rules.inlineLink = { filter: function (node, options) { return ( options.linkStyle === 'inlined' && node.nodeName === 'A' && node.getAttribute('href') ) }, replacement: function (content, node) { var href = node.getAttribute('href'); // todo .trim() var title = node.title ? ' "' + node.title + '"' : ''; return '[' + content + '](' + href + title + ')' } };
See todo