Add linenumbering
Fix rocket dependencies
This commit is contained in:
parent
275ace8356
commit
be88df22f7
3 changed files with 30 additions and 7 deletions
|
@ -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 %}
|
Loading…
Add table
Add a link
Reference in a new issue