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:
ylemkimon
2019-04-18 22:10:19 +09:00
committed by GitHub
parent e7193227f6
commit f948947736
4 changed files with 57 additions and 1 deletions

View File

@@ -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/