From f5928643b8ef4b992e16c86f3904ec5b52c52f3e Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 22 Aug 2015 07:52:06 -0400 Subject: [PATCH] Make smartquotes into regular quotes for monospaced output --- unpacked/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 index 3497dd636..ddd702230 100644 --- 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?