From 43f59da6b9dcdf9302426fda4e8ab12df87891c7 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 20 Aug 2015 11:21:34 -0400 Subject: [PATCH] Make 'dumb quotes' into 'smark quotes' --- unpacked/jax/output/CommonHTML/autoload/ms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/output/CommonHTML/autoload/ms.js b/unpacked/jax/output/CommonHTML/autoload/ms.js index 72cb20452..3497dd636 100644 --- a/unpacked/jax/output/CommonHTML/autoload/ms.js +++ b/unpacked/jax/output/CommonHTML/autoload/ms.js @@ -44,8 +44,8 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { // Get the quotes to use // var values = this.getValues("lquote","rquote"); - if (!this.hasValue("lquote")) values.lquote = "\u201C"; - if (!this.hasValue("rquote")) values.rquote = "\u201D"; + if (!this.hasValue("lquote") || values.lquote === '"') values.lquote = "\u201C"; + if (!this.hasValue("rquote") || values.rquote === '"') values.rquote = "\u201D"; // // Add the left quote, the child nodes, and the right quote // FIXME: should the quotation marks be in MML.VARIANT.NORMAL?