1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: Disable MathJax support, comment out online include
Forwarded: not-needed
Author: Blair Noctis <ncts@debian.org>
Last-Update: 2025-04-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/renderer/html_handlebars/hbs_renderer.rs
+++ b/src/renderer/html_handlebars/hbs_renderer.rs
@@ -548,3 +548,3 @@
if html_config.mathjax_support {
- data.insert("mathjax_support".to_owned(), json!(true));
+ warn!("mathjax is currently disabled in the Debian packaged mdBook due to packaging complications"); //data.insert("mathjax_support".to_owned(), json!(true));
}
--- a/src/front-end/templates/index.hbs
+++ b/src/front-end/templates/index.hbs
@@ -50,6 +50,6 @@
- {{#if mathjax_support}}
+ {{!--#if mathjax_support}}
<!-- MathJax -->
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
- {{/if}}
+ {{/if--}}
|