diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 0000000000..e7c656f57e
--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,2 @@
+[build]
+rustdocflags = ["--html-in-header", ".cargo/katex-header.html"]
diff --git a/.cargo/katex-header.html b/.cargo/katex-header.html
index 5db5bc0b19..b91d3723be 100644
--- a/.cargo/katex-header.html
+++ b/.cargo/katex-header.html
@@ -1,10 +1,10 @@
-
-
-