Skip to content

Commit

Permalink
Intentionally omit patch version in Prism CSS URL due to parsing bug …
Browse files Browse the repository at this point in the history
…in Safari (#506)

This seems to be the easiest workaround.

See: https://bugs.webkit.org/show_bug.cgi?id=229816
  • Loading branch information
adamkudrna committed Oct 30, 2023
1 parent 54b60a2 commit 4d292ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/docs/_assets/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
:root {
/* Visual configuration of the `<docoff-react-preview>` and `<docoff-react-base>` code */
/* The Prism theme CSS file, for options see: https://unpkg.com/browse/prismjs/themes/ */
--docoff-code-prism-css: https://unpkg.com/[email protected]/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/[email protected]/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;
Expand Down

0 comments on commit 4d292ba

Please sign in to comment.