Skip to content

Commit

Permalink
Merge branch 'log-mop' of https://github.com/Metropass/telescope into…
Browse files Browse the repository at this point in the history
… log-mop
  • Loading branch information
Metropass committed Feb 19, 2021
2 parents 9f4a99b + 5f63149 commit b67a6d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -82,6 +82,7 @@
"body-parser": "1.19.0",
"bull": "3.20.1",
"bull-board": "1.3.1",
"clean-whitespace": "0.1.2",
"connect-redis": "5.1.0",
"cors": "2.8.5",
"date-fns": "2.17.0",
Expand Down
3 changes: 3 additions & 0 deletions src/backend/utils/html/index.js
Expand Up @@ -4,6 +4,7 @@ const fixIFrameWidth = require('./fix-iframe-width');
const lazyLoad = require('./lazy-load');
const syntaxHighlight = require('./syntax-highlight');
const replaceCodeEntities = require('./replace-entities');
const emptyParagraph = require('./remove-empty-paragraphs');
const fixEmptyPre = require('./modify-pre');
const toDOM = require('./dom');

Expand Down Expand Up @@ -42,6 +43,8 @@ module.exports = function process(html) {
lazyLoad(dom);
// Replace <code> elements with encoded entities to use characters
replaceCodeEntities(dom);
// Removes spaces, tabs and any "clear" characters in a paragraph
emptyParagraph(dom);

// Return the resulting HTML
return dom.window.document.body.innerHTML;
Expand Down

0 comments on commit b67a6d9

Please sign in to comment.