Skip to content

Commit 469a57b

Browse files
committed
Pass arrays to the keep and remove functions
1 parent af0d036 commit 469a57b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/newTurndownService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export function newTurndownService(bulletPoint, subBrackets, turndownEscape) {
4444

4545
addRules(t, subBrackets);
4646

47-
t.keep('u').keep('sub').keep('sup').keep('dl').keep('dt').keep('dd');
47+
t.keep(['u', 'sub', 'sup', 'dl', 'dt', 'dd']);
4848

49-
t.remove('style').remove('script').remove('noscript').remove('link');
49+
t.remove(['style', 'script', 'noscript', 'link']);
5050

5151
return t;
5252
}

0 commit comments

Comments
 (0)