1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Prompt dialog and popup menu

This commit is contained in:
Laurent Cozic
2017-11-08 17:51:55 +00:00
parent 5a7fde7d21
commit 7d12da27ad
15 changed files with 364 additions and 55 deletions

View File

@@ -203,6 +203,8 @@ class MdToHtml {
if (!options) options = {};
if (!options.postMessageSyntax) options.postMessageSyntax = 'postMessage';
console.info(style);
const cacheKey = this.makeContentKey(this.loadedResources_, body, style, options);
if (this.cachedContentKey_ === cacheKey) return this.cachedContent_;
@@ -255,8 +257,13 @@ class MdToHtml {
body {
font-size: ` + style.htmlFontSize + `;
color: ` + style.htmlColor + `;
line-height: 1.5em;
line-height: ` + style.htmlLineHeight + `;
background-color: ` + style.htmlBackgroundColor + `;
font-family: sans-serif;
}
p, h1, h2, h3, h4, ul {
margin-top: 14px;
margin-bottom: 14px;
}
h1 {
font-size: 1.2em;