diff --git a/CHANGELOG.md b/CHANGELOG.md index b1aa73edcf..89855cf70e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ * ![Enhancement][badge-enhancement] The version of Documenter used for generating a document is now displayed in the build information. ([#1609][github-1609], [#1611][github-1611]) +* ![Bugfix][badge-bugfix] The HTML front end no longer uses ligatures when displaying code (with JuliaMono). ([#1610][github-1610], [#1617][github-1617]) + ## Version `v0.27.2` * ![Enhancement][badge-enhancement] The default font has been changed to `Lato Medium` so that the look of the text would be closer to the old Google Fonts version of Lato. ([#1602][github-1602], [#1604][github-1604]) @@ -834,7 +836,9 @@ [github-1602]: https://github.com/JuliaDocs/Documenter.jl/issues/1602 [github-1604]: https://github.com/JuliaDocs/Documenter.jl/pull/1604 [github-1609]: https://github.com/JuliaDocs/Documenter.jl/pull/1609 +[github-1610]: https://github.com/JuliaDocs/Documenter.jl/issues/1610 [github-1611]: https://github.com/JuliaDocs/Documenter.jl/pull/1611 +[github-1617]: https://github.com/JuliaDocs/Documenter.jl/pull/1617 [julia-38079]: https://github.com/JuliaLang/julia/issues/38079 [julia-39841]: https://github.com/JuliaLang/julia/pull/39841 diff --git a/assets/html/scss/documenter/_patches.scss b/assets/html/scss/documenter/_patches.scss index 3bfd6a29af..ba843146f3 100644 --- a/assets/html/scss/documenter/_patches.scss +++ b/assets/html/scss/documenter/_patches.scss @@ -35,6 +35,10 @@ } } +pre, code { + font-variant-ligatures: no-contextual; +} + // We want to be able to disable certain breadcrumb components .breadcrumb a.is-disabled { cursor: default; diff --git a/assets/html/themes/documenter-dark.css b/assets/html/themes/documenter-dark.css index cbeca20a2f..c6db4fae57 100644 --- a/assets/html/themes/documenter-dark.css +++ b/assets/html/themes/documenter-dark.css @@ -7320,6 +7320,8 @@ html.theme--documenter-dark { overflow-x: auto; } html.theme--documenter-dark .content blockquote > ul:first-child, html.theme--documenter-dark .content blockquote > ol:first-child, html.theme--documenter-dark .content .admonition-body > ul:first-child, html.theme--documenter-dark .content .admonition-body > ol:first-child { margin-top: 0; } + html.theme--documenter-dark pre, html.theme--documenter-dark code { + font-variant-ligatures: no-contextual; } html.theme--documenter-dark .breadcrumb a.is-disabled { cursor: default; pointer-events: none; } diff --git a/assets/html/themes/documenter-light.css b/assets/html/themes/documenter-light.css index 4a928f663b..b3291bc3e1 100644 --- a/assets/html/themes/documenter-light.css +++ b/assets/html/themes/documenter-light.css @@ -7287,6 +7287,9 @@ h1:hover .docs-heading-anchor-permalink, h2:hover .docs-heading-anchor-permalink .content blockquote > ul:first-child, .content blockquote > ol:first-child, .content .admonition-body > ul:first-child, .content .admonition-body > ol:first-child { margin-top: 0; } +pre, code { + font-variant-ligatures: no-contextual; } + .breadcrumb a.is-disabled { cursor: default; pointer-events: none; }