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?

          4 days later
          5 days later

          Hi @Kylo,

          I've checked the error code from Chrome Developer Tool and found the fourm.js generated improperly. When the katex.render() is called, the content generated would contain:

          if (typeof katex !== 'undefined') katex.render(
            this.innerText,
            this,
            {{ "fleqn": !1,                                     // [HERE]
               "leqno": !1,
               "output": "htmlAndMathml",
               "throwOnError": !1,
               "errorColor": "#cc0000",
               "minRuleThickness": 0.05,
               "maxSize": 10,
               "maxExpand": 1000,
               "macros": {{}},                                  // [HERE]
               "colorIsTextColor": !1,
               "displayMode": !1
          }})                                                   // [HERE]

          Notice that it generates duplicate useless parenethesis both the outside object and the nested "macros":{{}}. This may relate to the TextFormatter you use in ConfigureTextFormatter.php.

          Check this commit. This issue may be resolved after s9e/TextFormatter update. (Because that's the required packages of flarum/core).

            okay now someone confirmed that this was an issue with the TextFormatter and updating it to the latest release fixed this issue: the-turk/flarum-mathren38