change `codechunk_fontsize` to codechunk_textsize`, add `codechunk_width`, and add support fo python chunks
diff --git a/inst/rmarkdown/templates/posterdown_betterland/resources/template.html b/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
index 44aafcd..40f5efb 100644
--- a/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
@@ -71,7 +71,7 @@
position: sticky;
width: 100%;
}
-pre.sourceCode.r {
+pre.sourceCode.r, pre.sourceCode.python {
background-color: #ffffff20;
border: solid $if(secondary_colour)$$secondary_colour$$else$#008080$endif$ 1mm;
border-radius: 0.5em;
@@ -83,13 +83,13 @@
}
div.sourceCode {
background-color: transparent;
-width: 85%;
+width: $if(codechunk_width)$$codechunk_width$$else$85%$endif$;
margin-left: auto;
margin-right: auto;
}
-code.sourceCode.r{
+code.sourceCode.r, code.sourceCode.python {
background-color: transparent;
-font-size: $if(codechunk_fontsize)$$codechunk_fontsize$$else$20pt$endif$;
+font-size: $if(codechunk_textsize)$$codechunk_textsize$$else$20pt$endif$;
border-radius: 2mm;
}
code {
diff --git a/inst/rmarkdown/templates/posterdown_betterport/resources/template.html b/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
index a6a549e..eb481fb 100644
--- a/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
@@ -69,19 +69,19 @@
position: sticky;
width: 100%;
}
-pre.sourceCode.r {
+pre.sourceCode.r, pre.sourceCode.python {
background-color: #dddddd40;
border-radius: 4mm;
padding: 4mm;
-width: 75%;
+width: $if(codechunk_width)$$codechunk_width$$else$85%$endif$;
margin: auto;
margin-top: 1em;
margin-bottom: 1em;
/* align-items: center; */
}
-code.sourceCode.r{
+code.sourceCode.r, code.sourceCode.python {
background-color: transparent;
-font-size: $if(codechunk_fontsize)$$codechunk_fontsize$$else$20pt$endif$;
+font-size: $if(codechunk_textsize)$$codechunk_textsize$$else$20pt$endif$;
border-radius: 2mm;
}
code {
diff --git a/inst/rmarkdown/templates/posterdown_html/resources/template.html b/inst/rmarkdown/templates/posterdown_html/resources/template.html
index bbf7ad8..47aaa94 100644
--- a/inst/rmarkdown/templates/posterdown_html/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_html/resources/template.html
@@ -222,7 +222,7 @@
}
div.sourceCode {
font-size: 20pt;
-width: 85%;
+width: $if(codechunk_width)$$codechunk_width$$else$85%$endif$;
margin-left: auto;
margin-right: auto;
padding: 1em;
@@ -230,14 +230,14 @@
border-color: #008080;
border-radius: 1em;
}
-pre.sourceCode.r {
+pre.sourceCode.r, pre.sourceCode.python {
width: 100%;
/* align-items: center; */
margin: auto;
}
-code.sourceCode.r{
+code.sourceCode.r, code.sourceCode.python {
background-color: transparent;
-font-size: $if(codechunk_fontsize)$$codechunk_fontsize$$else$20pt$endif$;
+font-size: $if(codechunk_textsize)$$codechunk_textsize$$else$20pt$endif$;
color: $if(body_textcol)$$body_textcol$$else$#000000$endif$
}
.caption {