You've already forked joplin
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:
@ -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: [],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user