Yalfoosh yeah, special delimiters limits further improvement of the extension and brings so much complexity. I feel like they don't fit well into community platforms, all others out there using BBCodes-only and it is simple enough. Also, they're more reliable and faster than special delimiters. I had to perform so many checks on delimiters to see if they're special ones or BBCodes (this class is there only for special delimiters as well as most of the functions in this class). We have Overleaf for our articles so let's keep it simple here.

I will leave 0.2.x as it is, feel free to inform me about any issues that you're experiencing on 0.2.x and I'll see what I can do.

    Kylo Well, it's likely that I'll update it, I feel like LaTeX on Flarum would have to be hella revamped to be as usable as ex. in Jupyter, probably in the category of expanding Markdown. Until then BBCodes will do.

    Kylo

    I am not using your extension nor is it important for my community.

    However, any extension that requires the BBCode extension would be self defeating for me.

    Kylo yeah, special delimiters limits further improvement of the extension and brings so much complexity.

    How about limiting the functionality for markdown users rather than abandoning them altogether?

    • Kylo replied to this.

      Pollux It won't require any BBCode extension to get working because TextFormatter supports that markup natively.

      Pollux How about limiting the functionality for markdown users rather than abandoning them altogether?

      The current major release seem to be working well so far and I will continue to support it as much as I can, but I encourage others to use BBCodes nevertheless.

      0.3.0

      Action

      • Drop special delimiters support (it is BBCodes-only now).
        • Thus, it should work faster from 0.2.x
        • I'll continue looking for better solutions to use them.
      • Remove the ability to customize wrappers from the MathRen settings page.
        • Because we can add custom CSS from the Appearance page already.
      • Remove the ability to change block and inline wrapper classes.
      • Add live previews.
      • Add Copy-tex plugin.
        • Now you can copy any expression's source to the clipboard. You can even quote it by selection.
        • It's not working flawless though, see their repository for known issues and let's see if we can find unknown ones.
      • Add some validation for the MathRen settings page.
      • Fix macros weren't working all the time.
        • Now you have to write them using JavaScript's syntax (e.g. \name => \\name)

      Also the backend has became more clear now, don't hesitate to join me.

      Updating

      composer require the-turk/flarum-mathren
        23 days later

        @kyelup When I click the editor button, the pointer jumps to the beginning.

        • Kylo replied to this.

          Kylo
          If the formula is too long, it will destroy the layout.

          How can we resist destruction?

          • Kylo replied to this.

            Geraldlzc Can you paste a sample formula here so I can look into it? Maybe it'll be more reasonable if you just split it into two different lines.

            a month later

            0.3.1

            • Fix wrong selection range after adding BBCodes via composer buttons.
            • Fix it was rendering the same post x2 times for no reason. 🤦‍♂️
            • Fix wrong default value for "Allow copying the source of KaTeX-rendered elements" option.
            • Optimize page load time.
              • Now it loads scripts only when it is necessary. Huge thanks to @datitisev
            • Switch to CDN.
            • Update KaTeX to v0.12.0 (see their changelog).
            • Require flarum/mentions to make the quote button work.
            • Run prettier for all JS files.

            0.3.2

            • Fix can't disable options if their default value is set to true.
            a month later

            Hi, i'm tring to install MathRen on a Flarum hosted on a shared server at FastComet. I got an error of incompatible versions, which i don't understand:

            [mathsadd@de8 ~]$ composer require the-turk/flarum-mathren
            Using version 0.3.2 for the-turk/flarum-mathren
            ./composer.json has been created
            Loading composer repositories with package information
            Updating dependencies (including require-dev)
            Your requirements could not be resolved to an installable set of packages.

            Problem 1
            - Installation request for the-turk/flarum-mathren 0.3.2 -> satisfiable by the-turk/flarum-mathren[0.3.2].
            - the-turk/flarum-mathren 0.3.2 requires flarum/core >=0.1.0-beta.10 <0.1.0-beta.14 ->satisfiable by flarum/core[v0.1.0-beta.10, v0.1.0-beta.11, v0.1.0-beta.11.1, v0.1.0-beta.12, v0.1.0-beta.13] but these conflict with your requirements or minimum-stability.

            Installation failed, deleting ./composer.json.
            [mathsadd@de8 ~]$

            I checked and flarum version is 0.1.0.beta.13, so what's wrong ?
            Any help is welcome.

              9 days later

              clarkwinkelmann if kvothe/pipetables is installed, the multiple line latex cannot be rendered or the table cannot be rendered

              clarkwinkelmann

              you can reproduce by this code

              This cannot be rendered
              [math]
              e = 655378
              [/math]
              
              This will be rendered successfully
              [math]e = 655379[/math]
              
              This will be rendered successfully
              | xxx | xxx |
              | --- | --- |
              | xx | xxx x |