Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add an option to specify path to MathJax.js [SF:bugs:195] #270

Closed
chrisjsewell opened this issue Aug 9, 2020 · 0 comments
Closed

Comments

@chrisjsewell
Copy link
Owner

author: mandriver
created: 2012-07-04 05:58:46
assigned: None
SF_url: https://sourceforge.net/p/docutils/bugs/195

Please add a configuration option to specify path to MathJax.js which is used for math processing.

For example, in Debian we have MathJax packaged and some users may want to use the local version (file:///usr/share/javascript/mathjax/MathJax.js) instead of the web one.

Having such an option will also make it possible to view docutils-generated HTML files without an internet connection.

See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677929 for Debian bug report.


commenter: mandriver
posted: 2012-09-02 09:44:08
title: #195 Please add an option to specify path to MathJax.js

Quoting the TODO from writers/html4css1/__init__.py:

# TODO: make this configurable:
#
# a) as extra option or
# b) appended to math-output="MathJax"?
#
# If b), which delimiter/delimter-set (':', ',', ' ')?

I've chosen b), and there's no check for delimiter: it reads 'MathJax', then any symbol, and then the URL. Please find the patch attached.


commenter: mandriver
posted: 2012-09-16 11:14:41
title: #195 Please add an option to specify path to MathJax.js

See also http://article.gmane.org/gmane.text.docutils.devel/6227.


commenter: mandriver
posted: 2012-10-10 15:59:33
title: #195 Please add an option to specify path to MathJax.js

attachments:

A patch that fixes this issue, version 3


commenter: mandriver
posted: 2012-10-10 15:59:55
title: #195 Please add an option to specify path to MathJax.js

attachments:

A patch that adds a test case


commenter: mandriver
posted: 2012-10-10 16:19:05
title: #195 Please add an option to specify path to MathJax.js

Attached two updated patches that fix issues Guenter pointed to.


commenter: milde
posted: 2012-11-15 20:57:16
title: #195 Please add an option to specify path to MathJax.js

  • status: open --> closed-fixed

commenter: milde
posted: 2012-11-15 20:57:16
title: #195 Please add an option to specify path to MathJax.js

Fixed; thanks for the bug report.

You can download a current snapshot from:
http://docutils.svn.sourceforge.net/viewvc/docutils/trunk/docutils/?view=tar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant