Add linenumbering

Fix rocket dependencies
This commit is contained in:
j_dickert 2020-04-05 11:42:59 +02:00 committed by Jordan Doyle
parent 275ace8356
commit be88df22f7
3 changed files with 30 additions and 7 deletions

View file

@ -9,7 +9,23 @@
font-family: inherit;
font-size: 1rem;
line-height: inherit;
counter-reset: line;
}
code {
counter-increment: line;
}
code::before {
content: counter(line);
display: inline-block;
width: 2em; /* Fixed width */
padding: 0 1em 0.3em 0;
margin-right: .5em;
color: #888;
-webkit-user-select: none;
}
{% endblock styles %}
{% block content %}<pre><code>{{ content|safe }}</code></pre>{% endblock content %}
{% block content %}<pre>{{ content|safe }}</pre>{% endblock content %}