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

  • perchance@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    6 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!