From 4d292ba35ea3f36ad7c62b4ab9e8582a8f1f3ce3 Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Mon, 30 Oct 2023 17:46:59 +0100 Subject: [PATCH] Intentionally omit patch version in Prism CSS URL due to parsing bug in Safari (#506) This seems to be the easiest workaround. See: https://bugs.webkit.org/show_bug.cgi?id=229816 --- src/docs/_assets/stylesheets/extra.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/docs/_assets/stylesheets/extra.css b/src/docs/_assets/stylesheets/extra.css index ea2e9782..ea8fe2e8 100644 --- a/src/docs/_assets/stylesheets/extra.css +++ b/src/docs/_assets/stylesheets/extra.css @@ -3,7 +3,8 @@ :root { /* Visual configuration of the `` and `` code */ /* The Prism theme CSS file, for options see: https://unpkg.com/browse/prismjs/themes/ */ - --docoff-code-prism-css: https://unpkg.com/prismjs@1.29.0/themes/prism-twilight.min.css; + /* NOTE: Patch version is omitted due to parsing bug in Safari: https://bugs.webkit.org/show_bug.cgi?id=229816 */ + --docoff-code-prism-css: https://unpkg.com/prismjs@1.29/themes/prism-twilight.min.css; --docoff-code-font-size: 1rem; --docoff-code-line-height: 1.5; --docoff-code-font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;