www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f5928643b8ef4b992e16c86f3904ec5b52c52f3e
parent e7961f0dd2202a08e363a752b9c9b040cf9f60fc
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sat, 22 Aug 2015 07:52:06 -0400

Make smartquotes into regular quotes for monospaced output

Diffstat:
Munpacked/jax/output/CommonHTML/autoload/ms.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/unpacked/jax/output/CommonHTML/autoload/ms.js b/unpacked/jax/output/CommonHTML/autoload/ms.js @@ -43,9 +43,11 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { // // Get the quotes to use // - var values = this.getValues("lquote","rquote"); + var values = this.getValues("lquote","rquote","mathvariant"); if (!this.hasValue("lquote") || values.lquote === '"') values.lquote = "\u201C"; if (!this.hasValue("rquote") || values.rquote === '"') values.rquote = "\u201D"; + if (values.lquote === "\u201C" && values.mathvariant === "monospace") values.lquote = '"'; + if (values.rquote === "\u201D" && values.mathvariant === "monospace") values.rquote = '"'; // // Add the left quote, the child nodes, and the right quote // FIXME: should the quotation marks be in MML.VARIANT.NORMAL?