diff --git a/markdown-it/info.json b/markdown-it/info.json index a59828b..e94c7d2 100644 --- a/markdown-it/info.json +++ b/markdown-it/info.json @@ -4,7 +4,7 @@ "script": "markdown-it.qml", "resources": ["markdown-it.js"], "authors": ["@milan-rusev", "@pbek"], - "version": "1.1.0", + "version": "1.1.1", "minAppVersion": "17.08.2", "description" : "This script replaces the default markdown renderer with markdown-it.\n\nDependencies\nmarkdown-it.js (v8.4.2 bundled with the script)\n\nUsage\nFor the possible configuration options check here." } diff --git a/markdown-it/markdown-it.qml b/markdown-it/markdown-it.qml index 4047b5a..654e434 100644 --- a/markdown-it/markdown-it.qml +++ b/markdown-it/markdown-it.qml @@ -83,7 +83,7 @@ QtObject { //Get original styles var head = html.match(new RegExp("(?:.|\n)*?"))[0]; //Add custom styles - head = head.replace("", "table {border-spacing: 0; border-style: solid; border-width: 1px; border-collapse: collapse;}" + customStylesheet + ""); + head = head.replace("", "table {border-spacing: 0; border-style: solid; border-width: 1px; border-collapse: collapse; margin-top: 0.5em;} th, td {padding: 0 5px;}" + customStylesheet + ""); mdHtml = ""+head+""+mdHtml+"";