mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-16 08:18:39 +00:00
Add KaTeX version to stylesheet and troubleshooting guide (#1893)
* Add KaTeX version to stylesheet * Add troubleshooting guide * Update katex.less [skip ci]
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
// The mu unit is defined as 1/18 em
|
||||
@mu: 1/18em;
|
||||
|
||||
// The version is dynamically set from package.json via webpack.common.js
|
||||
@version: "";
|
||||
|
||||
.katex {
|
||||
font: normal 1.21em KaTeX_Main, Times New Roman, serif;
|
||||
line-height: 1.2;
|
||||
@@ -18,6 +21,10 @@
|
||||
// mode, while still allowing background/foreground setting on root .katex
|
||||
* { -ms-high-contrast-adjust: none !important; }
|
||||
|
||||
.katex-version::after {
|
||||
content: @version;
|
||||
}
|
||||
|
||||
.katex-mathml {
|
||||
// Accessibility hack to only show to screen readers
|
||||
// Found at: http://a11yproject.com/posts/how-to-hide-content/
|
||||
|
Reference in New Issue
Block a user