Control the class of a html-anchor in a text-block

Hi

In my editor I have this:

This leads this this HTML-Code:

<div class="blocks">
              <p>Die Präsentation vom Elterninformationsabend finden Sie <a href="https://someurl.de/file.pdf">hier</a>.</p>            
</div>

The problem is that there is almost zero contrast in my theme if I do not apply a class here (I am using TailwindCSS), so I want the anchor to be <a href class="some class" href="...">

I don’t know how to tell Kirby to add a class to all <a>-tags…

In answering myself: is a “after”-hook the solution? To be honest I don’t really understand the documentation, how this system works.

return [
    'hooks' => [
        'kirbytext:after' => function (string $text) {
            
//what am I supposed to write here to add a class to an anchor-tag?

            return $text;
        }
    ]
]

See Kirby meets Tailwind CSS | Kirby CMS

Here is the specific solution:

This is now my blocks/text.php-file.

<?php
/** @var \Kirby\Cms\Block $block */ ?>
<article class="prose lg:prose-xl prose-a:text-blue-600">

    <?= $block->text(); ?>

</article>