Better KaTex Copy

使得KaTex公式在复制时不会出现换行和重复字符等奇怪的问题 ⚠注意:可能破坏观感!

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

/* ==UserStyle==
@name           Better KaTex Copy
@namespace      better_katex_copy
@version        1.0.0
@description    使得KaTex公式在复制时不会出现换行和重复字符等奇怪的问题 ⚠注意:可能破坏观感!
@author         lingbopro
@license        WTFPL
@preprocessor   stylus
@var checkbox hideSpaces "隐藏公式的空格" 0
==/UserStyle== */
@-moz-document regexp(".*") {
    /* KaTex复制优化 */
    .katex {
        .katex-mathml {
            user-select: none;
            display: none;
        }

        if hideSpaces {
            .katex-html {
                .strut,
                .mspace {
                    display: none;
                }
            }
        }
    }
}