Add markdown styling

This commit is contained in:
Peder Bergebakken Sundt 2020-03-07 01:30:04 +01:00
parent 44ac35e21b
commit d168323de9
2 changed files with 22 additions and 2 deletions

View File

@ -167,10 +167,10 @@
{% endif %}
{% if yaml.description %}
<center>{{ yaml.description | markdown | safe }}</center>
<div class="markdown">{{ yaml.description | markdown | safe }}</div>
{% endif %}
{% if xml.description %}
<center>{{ xml.description | markdown | safe }}</center>
<div class="markdown">{{ xml.description | markdown | safe }}</div>
{% endif %}
{% if yaml.steps %}

View File

@ -130,6 +130,26 @@
border-radius: 1mm;
background-color: #ddd;
font-size: 0.9em;
position: relative;
.markdown {
text-align: center;
table {
margin-top:-0.3em;
margin-left:auto;
margin-right:auto;
th, td {
font-size: 2.5mm; /* user agent style override */
}
}
p + table {
margin-top:-1em;
}
li {
text-align: left;
}
}
ul, ol {
padding-left: 1.5em;