Loading md_to_docx_converter/customCSS.css +12 −6 Original line number Diff line number Diff line Loading @@ -486,6 +486,7 @@ button, input[type="reset"], input[type="submit"] { -webkit-appearance: button; /* 2 */ appearance: button; cursor: pointer; /* 3 */ } Loading Loading @@ -550,6 +551,7 @@ input[type="number"]::-webkit-outer-spin-button { input[type="search"] { -webkit-appearance: textfield; /* 1 */ appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; /* 2 */ box-sizing: content-box; Loading Loading @@ -900,7 +902,7 @@ table td > p:last-child { } table tr { border-top: 1px solid rgb(153, 160, 165); background-color: fff; background-color: #fff; color: #1a1f23; } Loading Loading @@ -1027,8 +1029,8 @@ code > span.vs { code > span.ss { color: #bb6688; } /* SpecialString */ code > span.im { } /* Import */ /* code > span.im { } Import */ code > span.va { color: #19177c; } /* Variable */ Loading @@ -1039,10 +1041,10 @@ code > span.cf { code > span.op { color: #666666; } /* Operator */ code > span.bu { } /* BuiltIn */ /* code > span.bu { } BuiltIn code > span.ex { } /* Extension */ } Extension */ code > span.pp { color: #bc7a00; } /* Preprocessor */ Loading Loading @@ -1167,3 +1169,7 @@ code span.er { .bg-striped-row { background-color: rgb(241, 241, 241) !important; } table.no-table-stripes tbody tr { background-color: #fff !important; } md_to_docx_converter/src/to_html/postprocessing.py +1 −1 Original line number Diff line number Diff line Loading @@ -289,7 +289,7 @@ def format_tables(soup: BeautifulSoup) -> BeautifulSoup: """ # add stripes to table rows tables = soup.find_all("table") tables = soup.find_all("table", class_=lambda x: x != "no-table-stripes") for table in tables: tbody = table.find("tbody") trs = tbody.find_all("tr") if tbody else [] Loading Loading
md_to_docx_converter/customCSS.css +12 −6 Original line number Diff line number Diff line Loading @@ -486,6 +486,7 @@ button, input[type="reset"], input[type="submit"] { -webkit-appearance: button; /* 2 */ appearance: button; cursor: pointer; /* 3 */ } Loading Loading @@ -550,6 +551,7 @@ input[type="number"]::-webkit-outer-spin-button { input[type="search"] { -webkit-appearance: textfield; /* 1 */ appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; /* 2 */ box-sizing: content-box; Loading Loading @@ -900,7 +902,7 @@ table td > p:last-child { } table tr { border-top: 1px solid rgb(153, 160, 165); background-color: fff; background-color: #fff; color: #1a1f23; } Loading Loading @@ -1027,8 +1029,8 @@ code > span.vs { code > span.ss { color: #bb6688; } /* SpecialString */ code > span.im { } /* Import */ /* code > span.im { } Import */ code > span.va { color: #19177c; } /* Variable */ Loading @@ -1039,10 +1041,10 @@ code > span.cf { code > span.op { color: #666666; } /* Operator */ code > span.bu { } /* BuiltIn */ /* code > span.bu { } BuiltIn code > span.ex { } /* Extension */ } Extension */ code > span.pp { color: #bc7a00; } /* Preprocessor */ Loading Loading @@ -1167,3 +1169,7 @@ code span.er { .bg-striped-row { background-color: rgb(241, 241, 241) !important; } table.no-table-stripes tbody tr { background-color: #fff !important; }
md_to_docx_converter/src/to_html/postprocessing.py +1 −1 Original line number Diff line number Diff line Loading @@ -289,7 +289,7 @@ def format_tables(soup: BeautifulSoup) -> BeautifulSoup: """ # add stripes to table rows tables = soup.find_all("table") tables = soup.find_all("table", class_=lambda x: x != "no-table-stripes") for table in tables: tbody = table.find("tbody") trs = tbody.find_all("tr") if tbody else [] Loading