8

I've been contributing to a userscript which adds side-by-side editing functionality to Stack Exchange. It can be toggled on and off by clicking a new button in the editor and works when writing new as well as editing existing questions and answers. Screenshot More info can be found over at StackApps SE.


7

If you ever want to do such, I would recommend the alternative format: >! \begin{align} a=b \\ b=c \\ c=d \end{align} This allows multiple lines, as well as allowing preview while editing. The problem occurs any time you attempt to do dollar signs with multi-line spoilers. One may also wish to implement another approach: >! $$ a=b \\ b=c \\ c=d$$ ...


7

This is the (deprecated) mobile web version of the site; it does not have a preview when editing posts. To switch back to the full version, click the 'full site' link in the footer. It seems you have a large enough screen to not need using the mobile web version.


5

This is fixed. What went wrong? When we insert an editor into a page on a site that includes MathJax, we inject some JavaScript that looked like this: loadMathJaxEditorFeatures() .done(() => { Editor.creationCallbacks.add((editor) => { configureEditorWithMathJaxFeatures(editor); }); }); Basically, this lazy loads the features needed ...


4

This will be fixed in the next build. When doing a preview, transformations are run on the rendered HTML, looking for a ! at the beginning of lines in a <blockquote>, stripping them out, and adding the spoiler style. This boils down to code somewhere that ran html.replace('! $$a = b$$', '$$a = b$$'). Unfortunately, because JavaScript overloads ...


4

There is no "preview button". Just to confirm information in the comments, and to check whether asking a question presented an issue with respect to seeing a preview, I posted the following "example question": Note the text and formatting I typed in the question field (labeled "body" in the image below). Also note that directly below the question field (...


4

As pointed out by quid, this was reported shortly after the site's UI update. Given that since then nothing has been done about this, I think a workaround is in order. For example. you can edit an answer on the sandbox for long, complex posts. (I think that besides colour, meta renders identical to main.) I also thought of the possibility of a deleted self-...


4

For posts you can go first to revision history of the specific post. And after that click on view source. This was suggested in this answer: Can you copy paste tex code from the question without going the “view source” route? How to get to the revision history: If the post in question was edited it suffices to click on the timestamp. But for any post (...


3

The problem seems to be that the MathJax editing code is not loaded in review or on deleted question pages. This, in turn, seems to happen because those pages are missing the following inline JavaScript code that is included on normal question pages: StackExchange.ifUsing("editor", function () { return StackExchange.using("mathjaxEditing", function () {...


2

Thanks to Martin's link, I noticed the "show preview" button I don't know how the preview ever got into a hidden state, but now it works fine after re-enabling it. Unhiding it on one machine also unhid it on other machines (at the same IP). So it is somewhat puzzling what the scope is for this user setting, i.e. it seems to somehow be tied not only ...


2

One way how this would happen is when you include $\DeclareMathOperator{\Hom}{Hom}$ or somthing similar at some point, yet then change your mind about it and delete it. In the preview it will still work, yet then it will stop working. Other than that, when I start editing your old versions, it does not render. Likely it was not this though, but ...


2

Here is a userscript that I found in StackApps which was created partly by Antonio Vargas that enables side-by-side editing. This userscript adds a button to the editor toolbar ('Toggle Side-By-Side Editing') shown in the blue box in the image below so you can view the preview and markdown side by side when asking or answering a question or when editing an ...


2

Good joke on me. Evidently the bug only affects the editing preview. When the post is actually posted, it appears as expected. (If you click "edit" on my question and look at the preview, you'll see the problem I thought was present.) Still would be nice to get fixed but hardly vital.


1

Umm, yeah... that was probably my fault. At least some of it. What happened was that, about a year and a half ago, I added a client-side fix that disables display math in question lists into my SOUP user script. And I set up that script so that it applied to any MathJax content inside any HTML element with the class summary, which is used in question ...


1

Perhaps the best way to reproduce the problem is by posting some of the problematic expressions in a CW-answer, and inviting the Community to edit them and Comment on their experiences. Since the edits themselves exhibit the preview behavior, it's probably unnecessary to save edits (unless one wishes to add new examples). First is a "cases" expression, ...


1

I found that preview is available on the full site, which can be accessed from a mobile device by tapping "full site" link in the footer. This is a test to see if the full site works ... $2+2=4$ Actually this is cool! Thanks, I'll remember to switch sites ftom now on. Thanks everyone!


Only top voted, non community-wiki answers of a minimum length are eligible