Custom writer marks in Kirby 4

The docs should probably mention this. But “unknown” (to Kirby) tags are filtered out by the sanitizer.
You can allow tags in your plugin’s index.php

<?php 

Kirby\Sane\Html::$allowedTags['mark'] = true;

Kirby::plugin('mark/eg', [
    // ...
]);