ImportHtml: Get the logger once
parent
6e19d888d3
commit
db105e8650
|
@ -22,9 +22,9 @@ const jsdom = require('jsdom');
|
||||||
const rehype = require('rehype');
|
const rehype = require('rehype');
|
||||||
const minifyWhitespace = require('rehype-minify-whitespace');
|
const minifyWhitespace = require('rehype-minify-whitespace');
|
||||||
|
|
||||||
exports.setPadHTML = async (pad, html) => {
|
|
||||||
const apiLogger = log4js.getLogger('ImportHtml');
|
const apiLogger = log4js.getLogger('ImportHtml');
|
||||||
|
|
||||||
|
exports.setPadHTML = async (pad, html) => {
|
||||||
rehype()
|
rehype()
|
||||||
.use(minifyWhitespace, {newlines: false})
|
.use(minifyWhitespace, {newlines: false})
|
||||||
.process(html, (err, output) => {
|
.process(html, (err, output) => {
|
||||||
|
|
Loading…
Reference in New Issue