Aleram I do see in your source code that the latest version is installed. Hmm. Could you try a brand new test post? I don’t see any JavaScript errors either.

But, the same code works at my Flarum:

https://www.sitbreathe.be/d/52-test

Strange stuff.

Maybe a conflict with another extension? I’m not sure... I’ll think about it more later...

    010101
    I understood.
    There is no #hashtag at the beginning of a sentence.
    For example like this:
    #hashtag
    #тест

    Tried it on your forum - it doesn't work either

      Aleram Ah! Thank you for figuring that out. I’ll get it fixed. 🙏

      • [deleted]

      • Edited

      @010101
      I don't get any errors.
      Anyway, thanks again for all hard work!

      @[deleted] and @Aleram - The latest version (3.1) should fix what you are experiencing. 😄

        010101 Yes it works!
        Thank you very much for the work done! )

        • [deleted]

        Sorry, but v3.1 doesn't work for me. I will try again.

          [deleted] I’d have to take a look at your site and see if I see anything that could be causing it. Now that it is working for both me and @Aleram it’s going to be even harder to troubleshoot. If I could visit your forum I could view the page source and at least see if the right JavaScript is loading or not.

          Version 3.3 is here! 🥳

          • Fixed a bug (sometimes a single lone hashtag was not converting)

          ... and that is all that is new with 3.3. But, 3.0 brought:

          • Compatible with all languages
          • Ignores punctuation (it did before but, making it compatible with all languages meant re-doing this part as well as the following feature)
          • Ignores hashtag if something precedes it (which helps to avoid html and markup conflicts)

          To update you may try the regular update command (see first post of this thread), but sometimes depending on caches and other factors that does not work for me personally. You may instead deactivate and remove the old version completely using composer remove zerosonesfun/hashtags and then reinstall with composer require zerosonesfun/hashtags. Then of course reactivate the extension. 🙂

          If you have issues with this extension I can try to help but at a minimum I need a link to a post at your forum which has hashtags. This allows me to view your source code where I am able to confirm if the latest version got installed or not. Plus, I might see something else which could help to solve your issue. Thank you!

          • [deleted]

          • Edited

          @010101 version 3.3 solved problem! 😁
          Hope to see more extensions from you!

          P.S. Noticed that hashtags are not working with words in lists

            [deleted] Good to hear! Not working in lists is a “feature.”

            The code purposely will not create a linked hashtag if it is up against markdown or HTML. I don’t recall 100%, but I think I added this feature because long ago this extension was conflicting with another one. And it was because it was conflicting with some dynamically added HTML that the other extension was adding.

            In short, you can only have hashtags either alone on their own line, or within a normal sentence. 🙂

              • [deleted]

              010101 In short, you can only have hashtags either alone on their own line, or within a normal sentence. 🙂

              All clear. Thanks, man!

              18 days later

              The hashtags not working with FoF Formating. Because i got this message

              Hozzászólás keresése ugyan ilyen jelöléssel c#c0392b; color: white;\' class=\'uncited\'>
              '+app.translator.trans('fof-secure-https.forum.removed')+' | '+app.translator.trans('fof-secure-https.forum.show')+'

              ');$(this).hide();" onload="$(this).next().empty();" class="securehttps-replaced" src="https://djalmasi.hu/privat/fulltimehosting/01.png" title="" alt=""> Loading Image

                djalmasi More information is needed. This does not show how/why this would be the hashtags extension. I see the fof secure https extension may be having trouble loading an image?

                  010101
                  If i turning on the Hashtags, somehow the code complicated. Certain words preceded by a # sign. And so the automatic code converter gets stuck and can't perform automatic image loading.
                  I attached a video. (Sorry for the background noise, I forgot to turn off the microphone.)

                    djalmasi 010101 I suspect this is an issue with Secure HTTPS, which inserts HTML with a HEX color (background-color: #c0392b;) as well as some URL-encoded quotes (&#92) that might be interpreted as hashtags by this extension.

                    In fact, I'm pretty sure the way this extension is implemented will break if there's a # character in any HTML attribute or script tag (with the required spacing around it), since the code performs a replace on the raw HTML instead of the text parts.

                      djalmasi the problem is definitely this extension, because it's replacing raw HTML where it shouldn't.

                      Another way to reproduce without Secure HTTPS is to insert an image alt text with a hashtag, like

                      An image ![Nice #description](http://lorempixel.com/400/200)