From b188e105cc67eb0c96e43a59da9e4fb9f75408a3 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Mon, 12 Nov 2018 17:52:02 +0100 Subject: [PATCH] added table margins an paddings --- markdown-it/info.json | 2 +- markdown-it/markdown-it.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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+"";