From 08b58f0e4c9eaaaa70a155e70feda6d316bd8afa Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Tue, 9 Jan 2018 21:09:49 +0100 Subject: [PATCH] All: Fixed table font size and family --- ReactNativeClient/lib/MdToHtml.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ReactNativeClient/lib/MdToHtml.js b/ReactNativeClient/lib/MdToHtml.js index b6bbd0fa6..fd633f831 100644 --- a/ReactNativeClient/lib/MdToHtml.js +++ b/ReactNativeClient/lib/MdToHtml.js @@ -305,13 +305,15 @@ class MdToHtml { b,strong{font-weight:bolder}small{font-size:80%}img{border-style:none} `; + const fontFamily = 'sans-serif'; + const css = ` body { font-size: ` + style.htmlFontSize + `; color: ` + style.htmlColor + `; line-height: ` + style.htmlLineHeight + `; background-color: ` + style.htmlBackgroundColor + `; - font-family: sans-serif; + font-family: ` + fontFamily + `; padding-bottom: ` + options.paddingBottom + `; } p, h1, h2, h3, h4, h5, h6, ul, table { @@ -359,6 +361,10 @@ class MdToHtml { td, th { border: 1px solid silver; padding: .5em 1em .5em 1em; + font-size: ` + style.htmlFontSize + `; + color: ` + style.htmlColor + `; + background-color: ` + style.htmlBackgroundColor + `; + font-family: ` + fontFamily + `; } hr { border: none;