Revert "Add line numbers on code samples"

This reverts commit 20b2da9cd0.
This commit is contained in:
Gabriel Augendre 2021-04-15 18:25:57 +02:00
parent ff18f62c78
commit 25dfdfc492
3 changed files with 1 additions and 25 deletions

View file

@ -1,23 +0,0 @@
.codehilitetable td {
border: none;
margin: 0;
padding: 0;
}
.codehilitetable .linenos {
max-width: 20px;
}
.codehilitetable .linenos pre {
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
padding-right: 0;
}
.codehilitetable .code pre {
border-left: none;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding-left: .1rem;
}

View file

@ -19,7 +19,6 @@
<link rel="stylesheet" href="{% static "admonitions.css" %}" type="text/css"> <link rel="stylesheet" href="{% static "admonitions.css" %}" type="text/css">
{% if article and article.has_code %} {% if article and article.has_code %}
<link rel="stylesheet" href="{% static "vendor/codehilite.css" %}" type="text/css"> <link rel="stylesheet" href="{% static "vendor/codehilite.css" %}" type="text/css">
<link rel="stylesheet" href="{% static "code.css" %}" type="text/css">
{% endif %} {% endif %}
{% if user.is_authenticated %} {% if user.is_authenticated %}
<link rel="stylesheet" href="{% static "authenticated.css" %}"> <link rel="stylesheet" href="{% static "authenticated.css" %}">

View file

@ -20,7 +20,7 @@ def format_article_content(content):
extensions=[ extensions=[
"extra", "extra",
"admonition", "admonition",
CodeHiliteExtension(linenums=True, guess_lang=False), CodeHiliteExtension(linenums=False, guess_lang=False),
LazyLoadingImageExtension(), LazyLoadingImageExtension(),
] ]
) )