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:
parent
f1d751b356
commit
fdef2db232
@ -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: [],
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user