Merge pull request #2294 from paraglade/EIO-247-converters

EIO-247: css update for code block
This commit is contained in:
Catherine Luse
2020-02-20 11:50:37 -07:00
committed by GitHub
2 changed files with 24 additions and 17 deletions
+23 -16
View File
@@ -307,23 +307,30 @@ h4 > code {
color: #4a6482; color: #4a6482;
} }
.sourceCode { #.sourceCode {
color: #333333; # color: #333333;
background-color: #f4f4f4; # background-color: #f4f4f4;
font-size: 15px; # font-size: 15px;
width: 100%; # width: 100%;
display: inline-block; # display: inline-block;
overflow-wrap: break-word; # overflow-wrap: break-word;
word-wrap: break-word; # word-wrap: break-word;
word-break: normal; # word-break: normal;
line-break: strict; # line-break: strict;
hyphens: none; # hyphens: none;
-webkit-hyphens: none; # -webkit-hyphens: none;
-moz-hyphens: none; # -moz-hyphens: none;
white-space: normal; # white-space: normal;
padding-right: 50px; # padding-right: 50px;
} #}
.sourceCode {
background-color: ghostwhite;
font-family: monospace;
line-height: 25px;
color: #4a6482;
word-wrap: break-word;
}
/*-------------------------------------------- /*--------------------------------------------
08-14-2019 08-14-2019
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash -e #!/bin/bash -e
md_source="/source/source.md" md_source="${1:-/source/source.md}"
pandoc -s --template="templates/default.html" -f markdown-smart --toc -c css/style-portrait.css "${md_source}" -o "source.html" pandoc -s --template="templates/default.html" -f markdown-smart --toc -c css/style-portrait.css "${md_source}" -o "source.html"
python3 -m weasyprint source.html /output/output.pdf python3 -m weasyprint source.html /output/output.pdf