Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actually do no ligatures #430

Merged
merged 1 commit into from
Aug 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions docs/src/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/var
/* Code Snippet font */
--vp-font-family-mono: JuliaMono-Regular, monospace;
}
/*
Disable contextual alternates (kind of like ligatures but different) in monospace,
which turns `/>` to an up arrow and `|>` (the Julia pipe symbol) to an up arrow as well.
This is pretty bad for Julia folks reading even though copy+paste retains the same text.
*/

/* Target elements with class 'mono' */
.mono {
/* Disable contextual alternates */
font-feature-settings: "calt" 0;
.mono-no-substitutions {
font-family: "JuliaMono-Light", monospace;
font-feature-settings: "calt" off;
}
/* Apply monospace font to pre elements within .mono */
.mono pre {

/* Alternatively, you can use the following if you prefer: */
.mono-no-substitutions-alt {
font-family: "JuliaMono-Light", monospace;
font-variant-ligatures: none;
}
/* Apply monospace font to code elements within .mono */
.mono code {

/* If you want to apply this globally to all monospace text: */
pre, code {
font-family: "JuliaMono-Light", monospace;
font-feature-settings: "calt" off;
}

/**
Expand Down
Loading