GithubHelp home page GithubHelp logo

mathjax-for-reddit's People

Contributors

acarapetis avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

mathjax-for-reddit's Issues

Display block not detected

image

Turns into

image

while

image

turns into

image

The console yields this

image

The same yields for inline formatting. Using fresh new chrome.

Reddit's superscript markup gets in the way.

See example here. I checked on both new and old Reddit in Firefox. The equation [; \sum_{n=1}^{\infty}{ \frac{1}{n^2} } = \frac{\pi^2}{6} ;] is displayed as LaTeX only when it is put into a code block. If it is put in plain text, the carets get interpreted as Reddit's markup and turned into <sup> tags.

One possible way to solve this is to rewrite all <sup> tags found between the LaTeX delimiters back to LaTeX notation they are supposed to be.

The cheap way to go about it is to simply ask everyone to put their equations into code blocks.

`Uncaught ReferenceError: $ is not defined`

In the browser console, I see this error appear about once every second, exactly on any Reddit page, exactly when the user script is enabled.

The complete error message.
Uncaught ReferenceError: $ is not defined
    doMathJax MathJax for Reddit.user.js:24
    r helpers.js:74
    setTimeout handler*./node_modules/ vendors~Chat~Governance~Reddit.679ce754890c451d4393.js:1
    doMathJax MathJax for Reddit.user.js:22
    r helpers.js:74
    setTimeout handler*./node_modules/ vendors~Chat~Governance~Reddit.679ce754890c451d4393.js:1
    doMathJax MathJax for Reddit.user.js:22
    r helpers.js:74
    setTimeout handler*./node_modules/ vendors~Chat~Governance~Reddit.679ce754890c451d4393.js:1
    doMathJax MathJax for Reddit.user.js:22
    r helpers.js:74
    setTimeout handler*./node_modules/ vendors~Chat~Governance~Reddit.679ce754890c451d4393.js:1
    doMathJax MathJax for Reddit.user.js:22
    setTimeout handler*doMathJax MathJax for Reddit.user.js:22
    VMin026crv9r7 MathJax for Reddit.user.js:25
    VMin026crv9r7 MathJax for Reddit.user.js:30
    a injected-web.js:1
    v injected-web.js:1
    set injected-web.js:1
    <anonymous> MathJax for Reddit.user.js:1
    c injected-web.js:1
    ScriptData injected-web.js:1
    onHandle injected-web.js:1
    c injected-web.js:1
line 1 > injectedScript:24:9
    doMathJax MathJax for Reddit.user.js:24
    r helpers.js:74
    (Async: setTimeout handler)
    _wrapTimeFunction trycatch.js:28
    doMathJax MathJax for Reddit.user.js:22
    r helpers.js:74
    (Async: setTimeout handler)
    _wrapTimeFunction trycatch.js:28
    doMathJax MathJax for Reddit.user.js:22
    r helpers.js:74
    (Async: setTimeout handler)
    _wrapTimeFunction trycatch.js:28
    doMathJax MathJax for Reddit.user.js:22
    r helpers.js:74
    (Async: setTimeout handler)
    _wrapTimeFunction trycatch.js:28
    doMathJax MathJax for Reddit.user.js:22
    (Async: setTimeout handler)
    doMathJax MathJax for Reddit.user.js:22
    VMin026crv9r7 MathJax for Reddit.user.js:25
    VMin026crv9r7 MathJax for Reddit.user.js:30
    a injected-web.js:1
    v injected-web.js:1
    set injected-web.js:1
    <anonymous> MathJax for Reddit.user.js:1
    v injected.js:1
    g injected.js:1
    k injected.js:1
    onHandle injected.js:1
    s injected.js:1
    c injected-web.js:1
    ScriptData injected-web.js:1
    onHandle injected-web.js:1
    c injected-web.js:1
    s injected.js:1
    O injected.js:1
    forEach self-hosted:205
    b injected.js:1
    O injected.js:1
    forEach self-hosted:205
    b injected.js:1
    O injected.js:1
    h injected.js:1
    (Async: EventListener.handleEvent)
    h injected.js:1
    <anonymous> injected.js:1
    AsyncFunctionNext self-hosted:692
    (Async: async)
    <anonymous> injected.js:1
    <anonymous> injected.js:1
    n injected.js:1
    <anonymous> injected.js:1
    <anonymous> injected.js:1
    n injected.js:1
    <anonymous> injected.js:1
    <anonymous> injected.js:1
    inject ExtensionContent.jsm:575
    AsyncFunctionNext self-hosted:692

I am on a recent Firefox with Violentmonkey user script extension.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.