Hi~

I found a strange problem...

After I enable MathRen, any interaction will invalidate code highlight, which will be restored after refreshing.

Xnip2021-08-07_10-18-49.jpg

Xnip2021-08-07_10-20-10.jpg

Other interaction will also cause this:

Xnip2021-08-07_10-17-04.jpg

Xnip2021-08-07_10-16-34.jpg

and so on

When disabled, the problem disappears.

I'm not sure if this can be reproduced by others.

  • Kylo replied to this.
    13 days later

    stimw just to let you know that I saw your post but my job won't let me to work on an update right now - sorry. PRs are welcome.

      7 days later

      @Kylo Hello, what about translating the "Block Expression, Inline Expression"?
      I see this one doesn't have the .yml file like other extensions.

      • Kylo replied to this.

        Kylo Thank you, managend to translate it, but I'm facing another issue now.
        I installed the extension on a 1.0.4 flarum installation, but, once I enable it, can't post anymore on the website, neither me or anyone else.

        • Kylo replied to this.
          4 days later

          Kylo That’s all right...

          I might not be able to figure it out because I know so little about the frontend.
          But 0.3.7 is ok, the problem happens on 1.0.

          • Kylo replied to this.

            AleM that's strange. I need some extra information on this. Are there any console logs?

            stimw that makes sense, lots of things have been changed since that version (especially on the front-end of things).

            2 months later

            So great, but depending of cdn.delivr.net

            a month later

            😆 any update for the conflict with code highlight?

            • Kylo replied to this.
              14 days later
              a month later

              Hi Kylo Kylo , I found that Rich Text editor extension does not work well with MathRen. Have you tried that extension?

              • Kylo replied to this.

                Kylo hmm a while ago I added some support so that everything between dollar signs (whether sets of 1 or sets of 2) isn't escaped. But it doesn't add it's own math rendering. Do you know what the issues are?

                • Kylo replied to this.

                  askvortsov oh this issue (the-turk/flarum-mathren29) might've confused me 🤦 I mixed up feature request & bug report on my mind and thought that two extensions are conflicting with each other. I haven't tested them yet tbh, and it was reported by a problematic user (smh) so maybe @ParlorPink can provide more details about this? Feel free to open a new issue on GitHub.

                  2 months later

                  stimw
                  May be you can also ask to each members of you forum to contribute in the code or to give money to encourage the developer?

                  Have a nice day

                  8 days later

                  Hi @Kylo
                  I currently use: /if/flajax
                  I would like to know if I can replace it with the-turk/flarum-mathren ?

                  • Kylo replied to this.

                    Natoons I think that extension looks up for $$ signs in posts, where MathRen replaces those signs with BBCodes as you typing/saving a post (for better Markdown support). If you want to switch to the MathRen, you should edit & save every post that contains mathematical expression, manually, one by one.

                    4 months later

                    1.0.4

                    Requires Flarum v1.2.0+

                    • Fix inline Litedown links have priority over regular BBCodes. (the-turk/flarum-mathren28)
                    • Update KaTeX to v0.16.0 (see their changelog) - copy-tex now uses js instead of css which makes it more robust.
                    • Update js dependencies and imports.
                    • Uses new default extender instead of deprecated addSettings migration helper.
                    • Uses exported flarum/mentions fragment PostQuoteButton instead of replicating it.

                    1.0.5

                    • Fix code highlighting breaks when you interact with the page.

                    1.0.6


                    1.0.7

                    Now I noticed that this extension actually requires PHP 8+ 🥸

                    2 months later

                    Hey,

                    this extension seems to not be compatible with Flarum v1.5.0:

                    Info:

                    Flarum core 1.5.0
                    PHP version: 8.1.2
                    MySQL version: 5.5.5-10.9.3-MariaDB-1:10.9.3+maria~ubu2204
                    Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
                    +-------------------------------------+---------+--------+
                    | Flarum Extensions                   |         |        |
                    +-------------------------------------+---------+--------+
                    | ID                                  | Version | Commit |
                    +-------------------------------------+---------+--------+
                    | flarum-flags                        | v1.5.0  |        |
                    | flarum-tags                         | v1.5.0  |        |
                    | flarum-suspend                      | v1.5.0  |        |
                    | flarum-sticky                       | v1.5.0  |        |
                    | flarum-nicknames                    | v1.5.0  |        |
                    | flarum-lock                         | v1.5.0  |        |
                    | flarum-approval                     | v1.5.0  |        |
                    | afrux-forum-widgets-core            | v0.1.7  |        |
                    | askvortsov-auto-moderator           | v0.1.2  |        |
                    | flarum-likes                        | v1.5.0  |        |
                    | zerosonesfun-bbcode-button          | 1.1.3   |        |
                    | yannisme-oxotheme                   | 2.1.5   |        |
                    | v17development-seo                  | v1.8.0  |        |
                    | the-turk-mathren                    | 1.0.7   |        |
                    | the-turk-flamoji                    | 1.0.4   |        |
                    | sycho-profile-cover                 | v1.3.3  |        |
                    | sycho-move-posts                    | v0.1.7  |        |
                    | ramesh-dada-bbcode-alerts           | 6.21    |        |
                    | nearata-signup-confirm-password     | v3.0.1  |        |
                    | kilowhat-audit-free                 | 1.5.1   |        |
                    | justoverclock-welcomebox            | 1.3.7   |        |
                    | justoverclock-purify                | 0.1.7   |        |
                    | justoverclock-hot-discussions       | 0.1.2   |        |
                    | fof-username-request                | 1.0.1   |        |
                    | fof-user-directory                  | 1.2.3   |        |
                    | fof-user-bio                        | 1.1.0   |        |
                    | fof-upload                          | 1.2.3   |        |
                    | fof-stopforumspam                   | 1.2.1   |        |
                    | fof-socialprofile                   | 1.1.4   |        |
                    | fof-sitemap                         | 1.0.3   |        |
                    | fof-share-social                    | 1.1.0   |        |
                    | fof-secure-https                    | 1.1.0   |        |
                    | fof-reactions                       | 1.1.2   |        |
                    | fof-profile-image-crop              | 1.0.1   |        |
                    | fof-polls                           | 1.2.0   |        |
                    | fof-pages                           | 1.0.4   |        |
                    | fof-nightmode                       | 1.5.0   |        |
                    | fof-moderator-notes                 | 1.1.0   |        |
                    | fof-ignore-users                    | 1.1.0   |        |
                    | fof-formatting                      | 1.0.2   |        |
                    | fof-drafts                          | 1.1.2   |        |
                    | fof-disposable-emails               | 1.0.0   |        |
                    | fof-default-user-preferences        | 1.1.1   |        |
                    | fof-cookie-consent                  | 1.1.0   |        |
                    | fof-best-answer                     | 1.2.3   |        |
                    | fof-ban-ips                         | 1.0.2   |        |
                    | fof-analytics                       | 1.1.0   |        |
                    | flarum-statistics                   | v1.5.0  |        |
                    | flarum-pusher                       | v1.5.0  |        |
                    | flarum-mentions                     | v1.5.0  |        |
                    | flarum-markdown                     | v1.5.0  |        |
                    | flarum-lang-italian                 | 1.6.0   |        |
                    | flarum-bbcode                       | v1.5.0  |        |
                    | flarum-akismet                      | v1.5.0  |        |
                    | davwheat-custom-sidenav-links       | 1.0.1   |        |
                    | datlechin-signup-button             | v0.1.0  |        |
                    | datlechin-more-discussions          | v0.1.0  |        |
                    | clarkwinkelmann-shadow-ban          | 1.1.0   |        |
                    | clarkwinkelmann-first-post-approval | 1.0.1   |        |
                    | clarkwinkelmann-circle-groups       | 1.0.1   |        |
                    | clarkwinkelmann-author-change       | 1.0.2   |        |
                    | askvortsov-pwa                      | v3.1.3  |        |
                    | askvortsov-categories               | v3.0.6  |        |
                    | antoinefr-money                     | v1.2.0  |        |
                    | afrux-top-posters-widget            | v0.1.4  |        |
                    | afrux-news-widget                   | v0.1.1  |        |
                    | acpl-mobile-tab                     | 1.1.1   |        |
                    +-------------------------------------+---------+--------+
                    Base URL: https://apitest.flarum.cloud
                    Queue driver: sync
                    Mail driver: mail
                    Debug mode: off

                    I couldn't really find where the bug it is located in the source through dev. tools, since it's inside a minified forum JS file, so this is pretty much all that I know.

                    Seems like a minor syntax error to me, but perhaps this should be marked as incompatible for the time being?