1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-23 23:21:00 +01:00

Fixed HTML entities appearing in search result titles

This commit is contained in:
squidfunk 2019-03-01 13:17:13 +01:00
parent 2f5a4c1e93
commit 8a01e0cc8c
6 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,7 @@
mkdocs-material-4.0.2 (2019-03-01)
* Fixed #1012: & appears in search results
mkdocs-material-4.0.1 (2019-02-13) mkdocs-material-4.0.1 (2019-02-13)
* Fixed #762, #816: Glitch in sidebar when collapsing items * Fixed #762, #816: Glitch in sidebar when collapsing items

View File

@ -64,6 +64,10 @@ pip show mkdocs-material
## Changelog ## Changelog
### 4.0.2 <small>_ March 1, 2019</small>
* Fixed #1012: HTML character entities appear in search result titles
### 4.0.1 <small>_ February 13, 2019</small> ### 4.0.1 <small>_ February 13, 2019</small>
* Fixed #762, #816: Glitch in sidebar when collapsing items * Fixed #762, #816: Glitch in sidebar when collapsing items

View File

@ -41,7 +41,7 @@
<meta name="lang:{{ key }}" content="{{ lang.t(key) }}"> <meta name="lang:{{ key }}" content="{{ lang.t(key) }}">
{% endfor %} {% endfor %}
<link rel="shortcut icon" href="{{ config.theme.favicon | url }}"> <link rel="shortcut icon" href="{{ config.theme.favicon | url }}">
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-4.0.1"> <meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-4.0.2">
{% endblock %} {% endblock %}
{% block htmltitle %} {% block htmltitle %}
{% if page and page.meta and page.meta.title %} {% if page and page.meta and page.meta.title %}
@ -190,7 +190,7 @@
{% endblock %} {% endblock %}
</div> </div>
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/application.43ad2ac2.js' | url }}"></script> <script src="{{ 'assets/javascripts/application.955ddd4c.js' | url }}"></script>
{% if lang.t("search.language") != "en" %} {% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %} {% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %} {% if languages | length and languages[0] != "" %}

View File

@ -1,6 +1,6 @@
{ {
"name": "mkdocs-material", "name": "mkdocs-material",
"version": "4.0.1", "version": "4.0.2",
"description": "A Material Design theme for MkDocs", "description": "A Material Design theme for MkDocs",
"keywords": [ "keywords": [
"mkdocs", "mkdocs",

View File

@ -158,7 +158,6 @@ export default class Result {
const [path, hash] = doc.location.split("#") const [path, hash] = doc.location.split("#")
/* Escape HTML */ /* Escape HTML */
doc.title = escapeHTML(doc.title)
doc.text = escapeHTML(doc.text) doc.text = escapeHTML(doc.text)
/* Associate section with parent document */ /* Associate section with parent document */