Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+7 votes
2.9k views
in Plugins by
edited by

This plugin configures MathJax and Google Code Pretiffy URLs and enables them by default on Question Pages. There is also a widget which you can add on Page bottom of any other page- like Question List- if you want MathJax to be used there.

https://github.com/arjunsuresh/mathjax

The above plugin is only one part as we also need editor support for it. You can just download and use the ckeditor which I have configured for both. Also, do copy the qa-question.js and replace the one in qa-include - this is the only core hack but can't be avoided as of now if you want to render mathjax immediately upon submit of a comment or answer or when the expand All comments button is clicked.

The "fx" button in ckeditor is for Latex and while typing equations are replaced with $-$ and on submit rendered by MathJax without any conversion to image.

https://github.com/arjunsuresh/ckeditor-Q2A

Q2A version: 1.7.4
by
No, that does not need an update
by
Ok, thank you!
by
Hi arjunsuresh,
I installed the awesome plugin but find its code highlight function doesn't work for me. After carefully delving into the problem, I fixed the bug using highlight.js. Here is my repo: https://github.com/tangruize/q2a-formatter
by
Nice. I guess you replaced pretiffy ?

3 Answers

0 votes
by
edited by
this screenshot active?
by
added now :)
+1 vote
by

Hi arjunsuresh,

I installed this plugin on below site but do see below issues.

1. Replaced ckeditor folder from qa-plugin/wysiwyg-editor/ with https://github.com/arjunsuresh/ckeditor-Q2A

2. Moved tobecopied/qa-question.js to qa-content/ dir

3. Added plugin https://github.com/arjunsuresh/mathjax in qa-plugin dir

4. enabled both plugin. also enabled all options on mathjax plugin

Above steps are done on site https://demo.question2answer.info

I see below two buttons, source is not showing any window to add code and there is no icon for video option next to it.

Could you please help on this. thanks

by
Sorry, I had to roll back the upgrade as Uploads were throwing "Response Error" with the new ckeditor. The old ckeditor works with Q2A 1.8 ,I have changed the qa-global.js file as required in Q2A 1.8.
by
@arjunsuresh, thanks. I updated plugin. When I clicked on source button it highlights to editor, is it expected behavior? Youtube and other buttons are working.

pls check here....
https://demo.question2answer.info
by
Yes, that is how the Source button in ckeditor works rt? This editor now has Auto Save plugin of ckeditor - quite useful when users are typing in large content.
by
great! thanks again.
+1 vote
by

Follow all steps written by ProThoughts still getting trouble then Just change Folder name from "ckeditor-Q2A-master" to "ckeditor". It will work.

...