From 229ce562ff0b815b23f711626500a46a3f456945 Mon Sep 17 00:00:00 2001 From: Emily Eisenberg Date: Sat, 5 Mar 2016 09:32:44 -0800 Subject: [PATCH] Fix sub- and super-scripts not being centered inside of display math It looks like the `text-align: center` is affecting the text in sub and superscripts. Fixes #447 Test Plan: - Visit [this example](http://localhost:7936/?text=x%5El_%7Bi%5E%7Bl%2B1%7D%2Bi%2C%20j%5E%7Bl%2B1%7D%2Bj%2C%20d%7D) - Edit the HTML to add `...` around the `` node. - See that the sub and superscripts are left-aligned, not centered (It looks like we don't have a way to test this in the screenshotter for now) @kevinb --- static/katex.less | 1 + 1 file changed, 1 insertion(+) diff --git a/static/katex.less b/static/katex.less index 9a640db84..affddcaac 100644 --- a/static/katex.less +++ b/static/katex.less @@ -10,6 +10,7 @@ > .katex { display: inline-block; + text-align: initial; } }