1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +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 utils = require('./utils');
const noteStyle = require('./noteStyle');
class HtmlToHtml {
constructor(options) {
@ -26,8 +27,11 @@ class HtmlToHtml {
}
});
const cssStrings = noteStyle(theme, options);
const styleHtml = `<style>${cssStrings.join('\n')}</style>`;
return {
html: html,
html: styleHtml + html,
cssFiles: [],
};
}