123456789101112131415161718192021 |
- --- a/node_modules/turndown/lib/turndown.es.js 2018-04-29 10:24:58.000000000 +0000
- +++ b/node_modules/turndown/lib/turndown.es.js 2018-07-09 12:51:04.276160261 +0000
- @@ -53,6 +53,9 @@
- filter: 'br',
-
- replacement: function (content, node, options) {
- + if (node.previousElementSibling && node.previousElementSibling.nodeName === 'BR') {
- + return options.br + '\\\n'
- + }
- return options.br + '\n'
- }
- };
- @@ -110,7 +113,7 @@
- if (parent.nodeName === 'OL') {
- var start = parent.getAttribute('start');
- var index = Array.prototype.indexOf.call(parent.children, node);
- - prefix = (start ? Number(start) + index : index + 1) + '. ';
- + prefix = (start ? Number(start) + index : index + 1) + '. ';
- }
- return (
- prefix + content + (node.nextSibling && !/\n$/.test(content) ? '\n' : '')
|