From dd903d3092a9288f6c1ab2291b0a176a48351611 Mon Sep 17 00:00:00 2001 From: Ginger Old Date: Sun, 28 Feb 2021 16:01:13 -0600 Subject: [PATCH] Upgrade highlightjs to 10.5.0 for better code highlighting Closes #2312. --- docs/about/release-notes.md | 1 + mkdocs/themes/mkdocs/base.html | 6 +++--- mkdocs/themes/readthedocs/base.html | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md index d0bc7bfb..7394c906 100644 --- a/docs/about/release-notes.md +++ b/docs/about/release-notes.md @@ -117,6 +117,7 @@ up horizontal space for better rendering of content like tables (#2193). * Structure Files object now has a `remove` method to help plugin developers manipulate the Files tree. The corresponding `src_paths` has become a property to accomodate this possible dynamic behavior. See #2305. +* Updated highlight.js to 10.5.0. See #2313. ## Version 1.1.2 (2020-05-14) diff --git a/mkdocs/themes/mkdocs/base.html b/mkdocs/themes/mkdocs/base.html index 1961aa4e..71ed950c 100644 --- a/mkdocs/themes/mkdocs/base.html +++ b/mkdocs/themes/mkdocs/base.html @@ -21,7 +21,7 @@ {%- if config.theme.highlightjs %} - + {%- endif %} {%- for path in config['extra_css'] %} @@ -33,9 +33,9 @@ {%- if config.theme.highlightjs %} - + {%- for lang in config.theme.hljs_languages %} - + {%- endfor %} {%- endif %} diff --git a/mkdocs/themes/readthedocs/base.html b/mkdocs/themes/readthedocs/base.html index e472228d..ca106db6 100644 --- a/mkdocs/themes/readthedocs/base.html +++ b/mkdocs/themes/readthedocs/base.html @@ -23,7 +23,7 @@ {%- if config.theme.highlightjs %} - + {%- endif %} {%- for path in config['extra_css'] %} @@ -42,9 +42,9 @@ {%- if config.theme.highlightjs %} - + {%- for lang in config.theme.hljs_languages %} - + {%- endfor %} {%- endif %}