orsharir / github-mathjax

Chrome extension for rendering LaTeX equations in GitHub with MathJax
Other
153 stars 49 forks source link

Equations processing on preview tab #13

Open lucidyan opened 7 years ago

lucidyan commented 7 years ago

I found it very uncomfortable that when you edit a markdown on a github, the equations previews are not processed by the extension, so you have to commit each time to look at the result. Is it possible to add this task to your backlog?

orsharir commented 7 years ago

It actually does work in preview mode, but unfortunately, not every time you click on the preview tab it works. As a workaround, you can click on the "Write" tab and then click again on "Preview" tab, and often times it will render the math text on the second/third time.

I'll leave this ticket open to remind me to address the current partial implementation.

batzner commented 6 years ago

The jQuery selectors may need to be updated. .js-preview-tab is now .js-blob-edit-preview and .preview-content doesn't seem to be used at all (at least for Chrome 63).