i posted something similar a long time ago when i first tried to make a preprocessor and it gave errors until i had fullscreened the page and then minimized it. Again tried to delve in to preproccessors just now and again unsolvable errors and this time fullscreening did not fix it.

maybe it has to do with caching or something else? there is nothing typed about it on the preproccessor page about an issue. The inlineindent preprocessor seems to work without issue. its only newly created preprocessors that are problematic

like here https://perchance.org/46avv2s7of

  • alloOP
    link
    English
    1
    edit-2
    8 months ago

    omg thank you that is actually what i was stuck on before now that i remember.

    so the issue is https://perchance.org/preprocessors the example is exactly what i copypasted. i did not change anything. the example is written incorrectly. could you please change the example?

    • @perchanceM
      link
      English
      3
      edit-2
      8 months ago

      Ah, so that example is correct, but the problem is it doesn’t make it clear that you don’t necessarily need to import a preprocessor. It can just be defined within the generator that you’re creating. So in 46avv2s7of you can just directly write:

      $preprocess(text) =>
        text = text.replaceAll(":smile:", "😊");
        return text;
      

      instead of importing it from uniquelists. I’ve added an error message to catch this sort of mistake and I’ll try to make it more clear on the /preprocessors page. Thanks!

      • alloOP
        link
        English
        28 months ago

        oh wow.

        learned a bunch of things today. thank you! :)