texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/Texinfo/XS/convert/convert_html.c (file_head


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/convert/convert_html.c (file_header_information): use MATHJAX_CONFIGURATION customization variable.
Date: Sun, 15 Sep 2024 03:52:58 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new d77287765e * tp/Texinfo/XS/convert/convert_html.c 
(file_header_information): use MATHJAX_CONFIGURATION customization variable.
d77287765e is described below

commit d77287765ed57b457eaa36ab08fe967b776f19cc
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Sep 15 09:53:03 2024 +0200

    * tp/Texinfo/XS/convert/convert_html.c (file_header_information): use
    MATHJAX_CONFIGURATION customization variable.
---
 ChangeLog                            | 5 +++++
 tp/Texinfo/XS/convert/convert_html.c | 8 ++------
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 37c2c94149..e4b291dc41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-09-15  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/convert_html.c (file_header_information): use
+       MATHJAX_CONFIGURATION customization variable.
+
 2024-09-15  Patrice Dumas  <pertusus@free.fr>
 
        Format @cartouche in HTML with CSS and round corners
diff --git a/tp/Texinfo/XS/convert/convert_html.c 
b/tp/Texinfo/XS/convert/convert_html.c
index 2f3140de4c..0e277352d4 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -7240,15 +7240,11 @@ file_header_information (CONVERTER *self, const ELEMENT 
*command,
                                 self->conf->MATHJAX_SCRIPT.o.string);
       text_printf (&text, "<script type='text/javascript'>\n"
 "MathJax = {\n"
-"  options: {\n"
-"    skipHtmlTags: {'[-]': ['pre']},\n"
-"    ignoreHtmlClass: 'tex2jax_ignore',\n"
-"    processHtmlClass: 'tex2jax_process'\n"
-"  },\n"
+"%s\n"
 "};\n"
 "</script><script type=\"text/javascript\" id=\"MathJax-script\" async\n"
 "  src=\"%s\">\n"
-"</script>", mathjax_script);
+"</script>", self->conf->MATHJAX_CONFIGURATION.o.string, mathjax_script);
       free (mathjax_script);
     }
   begin_info->extra_head = text.text;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]