Skip to content

Commit

Permalink
fix(deps): removed js-beautify
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Feb 18, 2024
1 parent 348d971 commit a73ccc9
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 516 deletions.
3 changes: 1 addition & 2 deletions .ncurc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = {
upgrade: true,
reject: [
// Block package upgrades that moved to ESM
'nanoid',
'js-beautify'
'nanoid'
]
};
7 changes: 0 additions & 7 deletions lib/text-to-html.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

const beautifyHtml = require('js-beautify').html;
const linkifyIt = require('linkify-it');
const tlds = require('tlds');
const he = require('he');
Expand Down Expand Up @@ -192,12 +191,6 @@ function textToHtml(text) {

let generatedHtml = processQuotedNode(tree);

try {
return beautifyHtml(generatedHtml);
} catch (err) {
// ignore, might fail
}

return generatedHtml;
}

Expand Down
Loading

0 comments on commit a73ccc9

Please sign in to comment.