Added ".highlighttable" as an alias for ".codehilitetable" (#800)

When codehilite is disabled, or if pymdownx.highlight is used instead of codehilite, the default class "highlight" is used instead of "codehilite".  This also applies to the number table format that, and will use "highlighttable" instead of "codehilitetable".
This commit is contained in:
Isaac Muse 2018-06-18 02:11:11 -06:00 committed by Martin Donath
parent f9298cf91f
commit 31e561201e
4 changed files with 11 additions and 6 deletions

View File

@ -48,7 +48,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.4f4f49e8.css">
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.ba0fd1a6.css">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.6079476c.css">
{% endif %}
@ -175,7 +175,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ base_url }}/assets/javascripts/application.d0060b13.js"></script>
<script src="{{ base_url }}/assets/javascripts/application.ef380b89.js"></script>
{% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}

View File

@ -359,9 +359,14 @@ $codehilite-whitespace: transparent;
}
}
// When pymdownx.superfences is enabled but codehilite is disabled, the
// outer container gets this class name by default.
// When pymdownx.superfences is enabled but codehilite is disabled,
// pymdownx.highlight will be used. When this happens, the outer
// container and tables get these class names by default.
.highlight {
@extend .codehilite;
}
.highlighttable {
@extend .codehilitetable;
}
}