1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Desktop, Cli: Fixes #1960: Apply default style to notes in HTML format

This commit is contained in:
Laurent Cozic
2019-10-07 23:14:49 +02:00
parent f1d751b356
commit fdef2db232

View File

@ -1,5 +1,6 @@
const htmlUtils = require('lib/htmlUtils'); const htmlUtils = require('lib/htmlUtils');
const utils = require('./utils'); const utils = require('./utils');
const noteStyle = require('./noteStyle');
class HtmlToHtml { class HtmlToHtml {
constructor(options) { constructor(options) {
@ -26,8 +27,11 @@ class HtmlToHtml {
} }
}); });
const cssStrings = noteStyle(theme, options);
const styleHtml = `<style>${cssStrings.join('\n')}</style>`;
return { return {
html: html, html: styleHtml + html,
cssFiles: [], cssFiles: [],
}; };
} }