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

Minor fixing on note rendering

This commit is contained in:
Laurent Cozic
2017-11-21 19:47:29 +00:00
parent 48b648e656
commit 6283bf6190
6 changed files with 9 additions and 4 deletions

View File

@ -238,6 +238,7 @@ class MdToHtml {
render(body, style, options = null) {
if (!options) options = {};
if (!options.postMessageSyntax) options.postMessageSyntax = 'postMessage';
if (!options.paddingBottom) options.paddingBottom = '0';
const cacheKey = this.makeContentKey(this.loadedResources_, body, style, options);
if (this.cachedContentKey_ === cacheKey) return this.cachedContent_;
@ -298,6 +299,7 @@ class MdToHtml {
line-height: ` + style.htmlLineHeight + `;
background-color: ` + style.htmlBackgroundColor + `;
font-family: sans-serif;
padding-bottom: ` + options.paddingBottom + `;
}
p, h1, h2, h3, h4, ul, table {
margin-top: 0;