Skip to main content
Manishearth's user avatar
Manishearth's user avatar
Manishearth's user avatar
Manishearth
  • Member for 12 years, 9 months
  • Last seen more than 3 years ago
comment
MathJax Buttons
Changes made. Now it supports random delimiters, and also I put everything in a wrapper object.
revised
MathJax Buttons
deleted 84 characters in body
Loading…
revised
MathJax Buttons
deleted 103 characters in body
Loading…
revised
MathJax Buttons
added 176 characters in body
Loading…
revised
MathJax Buttons
added 48 characters in body
Loading…
revised
MathJax Buttons
edited body
Loading…
revised
MathJax Buttons
added 230 characters in body
Loading…
comment
MathJax Buttons
Oh, yeah, and the mathsf-looks-bad isn't your fault either, mathjax uses its own fonts. The font does look like that -- the CS folks use it in allcaps which looks OK. By the way, did you see what Alt-Z does? It may not be useful in your site (it's extremely useful in conjunction with the custom buttons), but since there is no button for, it may escape,your mind. Do you know any way to make this functionality (just a hotkey, no button) evident to others without cluttering the buttonbar with another button?
comment
MathJax Buttons
Later on I'll remove the dollar literals and add an if at the beginning which sets them based on the site. Also, I'm planning to remove everything from the window global object and adding it to some other MathJaxButtons object for cleanliness. Thanks for the code review !:D
comment
MathJax Buttons
Being an amateur programmer, any best-practice tips are really appreciated by me--I've never formally learnt programming(and never had a codereview) so my code tends to be icky sometimes. I never thought I'd need different dollar signs, since I never thought about SE sites that talk about both moolah and math ;-). Interesting concept, and definitely makes it more customizable.
comment
MathJax Buttons
Aah. electroniCS.stack. Exactly why I kept the "stack" in the regex--"cs" is too short and will match half the SE universe (I'll improve the regex). EE.SE wasn't supposed to get the NP button(you can keep it if you guys do use mathsf like the CS folks though)
comment
Detecting StackExchanges with non-standard "plugins" (e.g. MathJax)
@George yeah, neither did I.. Until I needed to find out for this script: stackapps.com/questions/3373/mathjax-buttons
Loading…
revised
MathJax Buttons
added 71 characters in body
Loading…
revised
MathJax Buttons
added 101 characters in body
Loading…
revised
MathJax Buttons
added 8 characters in body
Loading…
revised
MathJax Buttons
added 24 characters in body
Loading…
revised
MathJax Buttons
added 13 characters in body
Loading…
revised
MathJax Buttons
added 698 characters in body
Loading…
revised
MathJax Buttons
added 404 characters in body
Loading…
1
6 7
8
9 10
12